-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add a slash command to control permissions #2474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex Review: Here are some suggestions.
Reply with @codex fix comments
to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request that is ready for review, or mark a draft as ready for review. You can also ask for a review by commenting "@codex review".
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
codex-rs/config.md
Outdated
|
||
## Permissions presets | ||
|
||
Codex pairs the approval policy and sandbox mode into three easy presets you can select in the TUI (via `/permissions`). These are convenience shortcuts over `approval_policy` and `sandbox_mode`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here we want to say something more like
"Codex provides three main Approval Presets:
- name: description
- name: description
- name: description
You can further customize how Codex runs at the command line using the --ask-for-approval
and --sandbox
options.
codex-rs/tui/src/chatwidget.rs
Outdated
|
||
self.bottom_pane.show_selection_view( | ||
"Select permissions".to_string(), | ||
Some("Choose approval and sandbox mode for this session".to_string()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get rid of this?
codex-rs/tui/src/chatwidget.rs
Outdated
} | ||
|
||
self.bottom_pane.show_selection_view( | ||
"Select permissions".to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Select permissions".to_string(), | |
"Select approval mode".to_string(), |
Co-authored-by: ae <[email protected]>
Co-authored-by: ae <[email protected]>
A slash command to control permissions
Screen.Recording.2025-08-19.at.4.13.03.PM.mov