Skip to content

Conversation

@lionelchg
Copy link
Contributor

@lionelchg lionelchg commented Nov 11, 2025

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:

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.

@lionelchg lionelchg force-pushed the fix/cli-desc-full-auto branch from d4367b8 to a77f3dc Compare November 11, 2025 23:13
@etraut-openai etraut-openai merged commit eb1c651 into openai:main Nov 11, 2025
25 checks passed
@etraut-openai
Copy link
Collaborator

Thanks for the contribution.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect full-auto description in codex --help and codex exec --help

2 participants