Skip to content

Supports auto-review for CLI exec subcommand #23284

Closed

Description

@wangx1nyi

What variant of Codex are you using?

CLI

What feature would you like to see?

Currently, the approvals_reviewer="auto_review" feature only supports interactive mode and is triggered when a request is sent to a user. How can auto_review be enabled when using the CLI exec command?

Additional information

No response

Activity

  1. added
    CLIIssues related to the Codex CLI
    execIssues related to the `codex exec` subcommand
    on May 18, 2026
  2. etraut-openai commented on Jun 5, 2026

    @etraut-openai
    Contributor

    Thanks for the report. This is now supported as of Codex 0.137.0 via #23763.

    Configure codex exec with:

    codex exec \
      -c 'approval_policy="on-request"' \
      -c 'approvals_reviewer="auto_review"' \
      "your task"
    

    Approval requests will be reviewed automatically without requiring an interactive prompt. Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIenhancementNew feature or requestexecIssues related to the `codex exec` subcommand

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions