fix(ce-work-beta): update Codex sandbox flags to current CLI syntax#770
Merged
tmchow merged 2 commits intoEveryInc:mainfrom May 5, 2026
Merged
Conversation
--full-auto and --yolo do not exist in Codex CLI (verified against installed codex exec --help). Map full-auto to -s workspace-write and yolo description to --dangerously-bypass-approvals-and-sandbox.
tmchow
approved these changes
May 4, 2026
Contributor
Author
|
@tmchow Are you good with keeping the naming as-is? I don't think it disrupts anything to do so, but it does refer to modes that no longer exist and may cause confusion. |
Collaborator
|
I'm ok with the change. Merging soon. |
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--full-autois not a valid flag in the current Codex CLI — verified againstcodex exec --help(Codex 0.128.0+). The actual sandbox flag is-s workspace-write. The bash script was passing--full-autodirectly tocodex exec, which would cause delegation to fail at runtime.--yolois also not a valid flag — the actual flag for full bypass is--dangerously-bypass-approvals-and-sandbox. The script already used the correct flag; only the description shown during the consent flow was wrong.workspace-writeblocks network access by default but network can be re-enabled via~/.codex/config.toml.Changes
plugins/compound-engineering/skills/ce-work-beta/references/codex-delegation-workflow.md:--yolo→--dangerously-bypass-approvals-and-sandbox--full-auto→-s workspace-write; added note on re-enabling network accessSANDBOX_FLAG="--full-auto"→SANDBOX_FLAG="-s workspace-write"Open question
The internal mode names
yoloandfull-auto(used as config values and consent UI labels) derive from the old CLI flags that no longer exist. Options:bypass/workspaceordanger/sandboxDeferring for now since it's a separate concern from the flag correctness fix and would require a migration path for existing configs.
Test plan
codex exec --helpstill shows-s workspace-writeas a valid sandbox mode valuebun run release:validatepasses