Created
July 2, 2026 03:53
-
-
Save csrutil/a8ee45e9f44464523de7b5ac2db2da5b to your computer and use it in GitHub Desktop.
dangerously-bypass-approvals-and-sandbox.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/codex-rs/tui/src/lib.rs b/codex-rs/tui/src/lib.rs | |
| index 2904306..0c16686 100644 | |
| --- a/codex-rs/tui/src/lib.rs | |
| +++ b/codex-rs/tui/src/lib.rs | |
| @@ -1379,8 +1379,11 @@ async fn run_ratatui_app( | |
| } | |
| let mut app_server = Some(app_server_session); | |
| - let should_show_trust_screen_flag = | |
| - !uses_remote_workspace && should_show_trust_screen(&initial_config); | |
| + // The bypass flag pins both sandbox and approval policy, so the trust | |
| + // decision cannot affect this session. | |
| + let should_show_trust_screen_flag = !uses_remote_workspace | |
| + && !cli.dangerously_bypass_approvals_and_sandbox | |
| + && should_show_trust_screen(&initial_config); | |
| #[cfg(target_os = "windows")] | |
| let mut trust_decision_was_made = false; | |
| let login_status = if initial_config.model_provider.requires_openai_auth { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment