Codex Exec Resume Now Restores Saved Sandbox Permissions and Workspace
codex exec resume in 0.172.0 restores the saved sandbox permissions, working directory and workspace roots unless explicitly overridden. Resumed noninteractive runs now behave like the original.
Key Takeaways
codex exec resumenow restores saved sandbox permissions.- The working directory is restored too.
- Workspace roots carry over.
- Explicit overrides still take precedence.
- Helps scripts and CI that resume sessions.
- Fixed in Codex CLI 0.172.0.
Resume keeps the original environment
Before 0.172.0, resuming a noninteractive session with codex exec resume could lose context about how the original run was configured. The release now restores the saved sandbox permissions, the working directory and the workspace roots, unless the user explicitly overrides them on the command line.
Why it matters
Scripts and CI jobs that resume work rely on the same boundaries as the first run. Restoring saved permissions avoids surprise failures from a narrower sandbox and avoids running with different filesystem access than intended.
Overrides
Explicit flags still win, so users can deliberately change permissions or directories when resuming.