OpenAI Codex · tool · fg-0498

codex exec in CI finishes but changes no files

If you see The final message describes edits, but git diff is empty, the cause and the fix for OpenAI Codex are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun