Skip to content

Commit eb1c651

Browse files
authored
Update full-auto description with on-request (#6523)
This PR fixes #6522 by correcting the comment for `full-auto` in both `codex-rs/exec/src/cli.rs` and `codex-rs/tui/src/cli.rs` from `-a on-failure` to `-a on-request` to make it coherent with `codex-rs/tui/src/lib.rs:97-105`: ```rust pub async fn run_main( mut cli: Cli, codex_linux_sandbox_exe: Option<PathBuf>, ) -> std::io::Result<AppExitInfo> { let (sandbox_mode, approval_policy) = if cli.full_auto { ( Some(SandboxMode::WorkspaceWrite), Some(AskForApproval::OnRequest), ) ``` Running `just codex --help` or `just codex exec --help` should now yield the correct description of `full-auto` CLI argument. Signed-off-by: lionelchg <[email protected]>
1 parent e357fc7 commit eb1c651

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codex-rs/exec/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct Cli {
3030
#[arg(long = "profile", short = 'p')]
3131
pub config_profile: Option<String>,
3232

33-
/// Convenience alias for low-friction sandboxed automatic execution (-a on-failure, --sandbox workspace-write).
33+
/// Convenience alias for low-friction sandboxed automatic execution (-a on-request, --sandbox workspace-write).
3434
#[arg(long = "full-auto", default_value_t = false)]
3535
pub full_auto: bool,
3636

codex-rs/tui/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub struct Cli {
5151
#[arg(long = "ask-for-approval", short = 'a')]
5252
pub approval_policy: Option<ApprovalModeCliArg>,
5353

54-
/// Convenience alias for low-friction sandboxed automatic execution (-a on-failure, --sandbox workspace-write).
54+
/// Convenience alias for low-friction sandboxed automatic execution (-a on-request, --sandbox workspace-write).
5555
#[arg(long = "full-auto", default_value_t = false)]
5656
pub full_auto: bool,
5757

0 commit comments

Comments
 (0)