- Symptom
- The final message describes edits, but git diff is emptyCommands that write files fail with permission errors inside codex exec
- Cause
- codex exec runs in a read-only sandbox by default, so automation that expects edits gets none.
- Fix
- Pass --sandbox workspace-write for runs that edit, or danger-full-access only on an isolated runner.
- Apply
codex exec --sandbox workspace-write "fix the failing tests"- Affected
- Codex CLI codex exec, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders