-
Notifications
You must be signed in to change notification settings - Fork 7.1k
feat(tui): Add confirmation prompt for enabling full access approvals #4980
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
feat(tui): Add confirmation prompt for enabling full access approvals #4980
Conversation
f4660af to
6b89b41
Compare
6b89b41 to
7e82358
Compare
| } | ||
|
|
||
| /// Persist the acknowledgement flag for the full access warning prompt. | ||
| pub fn set_hide_full_access_warning(codex_home: &Path, acknowledged: bool) -> anyhow::Result<()> { |
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.
We must definitely refactor this... this is not normal that we need to write in a file etc just to set a flag
Also this should not be part of codex-core. The crate should be agnostic of those TUI details
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.
Strong agree on needing a new interface
| features: Features::with_defaults(), | ||
| active_profile: Some("gpt3".to_string()), | ||
| windows_wsl_setup_acknowledged: false, | ||
| notices: Default::default(), |
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.
Outside of scope but we should impl Default for Config
Summary
Adds a confirmation screen when a user attempts to select Full Access via the
/approvalsflow in the TUI.If the user selects the remember option, the preference is persisted to config.toml as
full_access_warning_acknowledged, so they will not be prompted again.Testing
https://chatgpt.com/codex/tasks/task_i_68e6c5c458088322a28efa3207058180