Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dylan-hurd-oai
Copy link
Collaborator

@dylan-hurd-oai dylan-hurd-oai commented Oct 9, 2025

Summary

Adds a confirmation screen when a user attempts to select Full Access via the /approvals flow 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

  • Adds snapshot test coverage for the approvals flow and the confirmation flow
Screenshot 2025-10-08 at 6 04 59 PM

https://chatgpt.com/codex/tasks/task_i_68e6c5c458088322a28efa3207058180

@tibo-openai tibo-openai marked this pull request as ready for review October 9, 2025 02:20
@dylan-hurd-oai dylan-hurd-oai force-pushed the codex/add-confirmation-screen-for-full-access-2va863 branch from f4660af to 6b89b41 Compare October 14, 2025 22:48
@dylan-hurd-oai dylan-hurd-oai force-pushed the codex/add-confirmation-screen-for-full-access-2va863 branch from 6b89b41 to 7e82358 Compare October 14, 2025 23:41
}

/// Persist the acknowledgement flag for the full access warning prompt.
pub fn set_hide_full_access_warning(codex_home: &Path, acknowledged: bool) -> anyhow::Result<()> {
Copy link
Collaborator

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

Copy link
Collaborator Author

@dylan-hurd-oai dylan-hurd-oai Oct 15, 2025

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(),
Copy link
Collaborator

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

@dylan-hurd-oai dylan-hurd-oai changed the title Add confirmation prompt for enabling full access approvals feat(tui): Add confirmation prompt for enabling full access approvals Oct 15, 2025
@fouad-openai fouad-openai merged commit 78f2785 into main Oct 17, 2025
48 of 52 checks passed
@fouad-openai fouad-openai deleted the codex/add-confirmation-screen-for-full-access-2va863 branch October 17, 2025 00:31
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants