Skip to content

Add an --approve-for-me CLI flag - #36373

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ae969e8c18f925f943049fefff56255f10b25659
Jul 31, 2026
Merged

Add an --approve-for-me CLI flag#36373
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ae969e8c18f925f943049fefff56255f10b25659

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 31, 2026

Copy link
Copy Markdown

Add an --approve-for-me CLI flag

What changed

  • Add --approve-for-me to interactive and exec commands to route approval requests through automatic review.
  • Configure the mode with approval_policy="on-request" and the workspace-write sandbox.
  • Propagate the option across root, exec, resume, and fork argument handling while preserving later subcommand permission overrides.

Testing

  • Cover parsing, permission conflicts, root/subcommand precedence, resume handling, and the effective exec approval and sandbox modes.

## What changed

- Add `--approve-for-me` to interactive and exec commands to route approval requests through automatic review.
- Configure the mode with `approval_policy="on-request"` and the `workspace-write` sandbox.
- Propagate the option across root, `exec`, `resume`, and `fork` argument handling while preserving later subcommand permission overrides.

## Testing

- Cover parsing, permission conflicts, root/subcommand precedence, resume handling, and the effective exec approval and sandbox modes.

GitOrigin-RevId: ae969e8c18f925f943049fefff56255f10b25659
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ae969e8c18f925f943049fefff56255f10b25659 branch from def95de to b7a6106 Compare July 31, 2026 18:27
@copyberry
copyberry Bot merged commit b7a6106 into main Jul 31, 2026
24 of 26 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ae969e8c18f925f943049fefff56255f10b25659 branch July 31, 2026 18:28
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 31, 2026
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.

1 participant