Codex exec resume restores saved folders and permissions
Codex 0.172.0 restores saved folders and sandbox permissions on exec resume. Learn what returns, what does not, and how to check a resumed task.

OpenAI's Codex 0.172.0 makes returning to a scripted coding task more useful: codex exec resume restores the saved working directory, workspace roots and sandbox permissions unless you explicitly override them. You can return to the conversation with the working context it was using, rather than quietly starting from a different folder or access setup.
The 24 November 2026 release also adds terminal links that open saved conversations and nested agent threads. These solve different parts of the same annoying problem: finding the job, then continuing it in the right place.
For a developer maintaining an internal tool, that matters when a review happens in one sitting and the follow-up happens later. The practical question becomes: did we recover the intended job, with the intended access, and is its next action still appropriate?
What changed, and who gets it?
This is a Codex developer-tool update. The specific restoration fix is for codex exec resume, the command for continuing a saved non-interactive run. Non-interactive means Codex runs from a script or terminal command without opening its full conversational terminal interface.
It suits work such as reviewing a proposed change, preparing release notes or carrying a coding task through separate stages. Someone needs to own the repository, execution environment and checks. It is not a new switch in ordinary ChatGPT web chat.
The release describes three related changes:
- Find the conversation: follow thread links from search results and transcripts into saved conversations and nested agent threads in the terminal.
- Restore the saved execution context:
codex exec resumebrings back sandbox permissions, the working directory and workspace roots unless overridden. - Preserve remote paths across platforms: separate fixes address working directories, roots and writable paths when an app-server client and server use different operating systems.
That last item concerns remote sessions. It should not be read as a promise that copying any local session to another computer recreates the original environment.
The release and current non-interactive documentation establish the intended behaviour. This article explains those changes; it does not report a recovery test or a measured reliability improvement.
The folder and permissions are part of the job
A saved conversation tells the agent what you discussed. Its execution context tells it where it is working and what its commands may do.
The working directory is the folder in which the task operates. Reviewing a test project and reviewing the production application's repository are different jobs, even if their filenames look similar.
Workspace roots identify the workspace folders associated with the session. A task may involve the main application and another deliberately included folder. Recovering that set matters when a resumed task needs the same project context.
Sandbox permissions constrain what model-generated commands can do. Codex documents read-only, workspace-write and broader-access modes. A request in the prompt to “only inspect” expresses intent; the sandbox supplies a separate technical boundary.
These are related, but they are not interchangeable. Returning to the right folder does not establish that the permissions are suitable. Nor does a read-only shell sandbox prove that every configured integration is read-only: OpenAI's documentation explicitly notes that project-defined MCP servers can run commands outside the sandbox. MCP connects an agent to external tools, so those tools need their own access review.
A concrete example: returning to an invoice-export review
Here is an editor-prepared fictional example, not a client story or observed Codex output.
A team has an internal helper that exports invoice rows into a CSV. A developer asks Codex to inspect how it handles a missing invoice reference. The first task is read-only: find the relevant function and tests, explain the current behaviour, then recommend a change.
After reviewing the recommendation, the developer returns to the saved task. They want to check whether an empty reference is handled differently from a missing field before deciding whether to allow an edit.
The restoration fix matters in three places. The resumed job should use the invoice helper's saved folder, retain its associated workspace roots and retain the read-only sandbox unless the developer deliberately changes it. Opening the conversation is only the first part of that return.
A useful follow-up instruction would be:
Continue the review of missing invoice references. First confirm the working folder and inspect the current files. Explain whether anything has changed since the earlier review. Identify the relevant existing checks. Do not edit files or contact external services. Finish with the proposed change and the evidence still needed before approving it.
That instruction is a teaching example. It does not set sandbox permissions or disconnect external tools. Configure those separately for the actual environment.
The useful outcome would be a review the developer can act on, with references to the current code and clear remaining checks. A fluent “I'm back” message would tell them very little.
What to check before accepting the resumed work
You do not need a complicated evaluation platform. Start with a short record beside the task:
- Task identity: which saved session is being continued, and what should happen next?
- Current project: which working folder and workspace roots are in use, and do the files match the intended job?
- Effective access: what sandbox and connected-tool access apply now?
- Prior actions: did the interrupted step already change anything that must not be repeated?
- Completion evidence: what diff, output file or check demonstrates that the requested follow-up actually finished?
For a controlled evaluation, use a disposable project with fictional data. Compare the recorded starting scope with a resumed run that has no overrides, then check a separately declared override case. Inspect the files afterwards. Keep the actual results rather than accepting the agent's description as the whole test.
If you are only reopening a discussion to read a recommendation, the saved transcript may be enough. If the next turn can run commands or change something, the execution context deserves the same attention as the chat history.
How to resume deliberately
OpenAI's current documentation supports two ways to select a saved non-interactive session: codex exec resume --last, or codex exec resume followed by a specific session ID.
Use the explicit ID when several jobs are in play. --last is convenient when the most recent eligible session is unambiguously the one you want, but it is a poor substitute for recording which job a pipeline should continue.
Before trying this in a real project, confirm that the installed Codex version includes the fix, that the saved session is available, and that the repository and required tools still exist. The documentation says Codex normally requires a Git repository. Resuming a conversation cannot supply a missing checkout or dependency.
For the first continuation, ask for the current-state inspection above before additional edits. If you intentionally need a different working folder, sandbox or workspace roots, consult the current command reference for the supported overrides. Changing these settings changes the execution context you are resuming.
Check the current command reference before adapting an existing script. In particular, older examples using --full-auto are obsolete: the current non-interactive guide says that flag is no longer supported.
What resuming does not restore
A saved session is not a frozen copy of the application.
Files can change between turns. A colleague can merge a fix. A local service can stop. An earlier command may have completed before the interruption, even if the conversation does not yet contain a tidy final explanation.
That is why the next action should depend on the current files and system state. If the interrupted task might have written an export, created a record or triggered another service, inspect the destination before repeating it. Continuing a conversation and replaying a completed action are different operations.
For the fictional invoice helper, check whether the proposed CSV already exists and which input it represents. Include that destination check under prior actions in the checklist. This is an operating recommendation, not an additional guarantee in the release.
Restoring old permissions can also restore permissions that are no longer appropriate. A task that previously needed write access may now only need review. Choose the scope for today's action rather than treating the saved setting as permanent approval.
Does this change which agent you should choose?
For an existing Codex user with multi-stage scripts, this is a concrete reason to review how session IDs and access settings are carried between stages. It also gives you a focused question to ask when evaluating a coding tool: what exactly survives a return to an unfinished task?
Codex earns its place when the work involves a codebase, command execution or a development process someone can maintain. For ordinary scheduled reports, a tool that already produces the right report remains the simpler starting point.
Our agent comparison covers that wider choice. The AI provider guide answers the separate question of which team workspace fits your documents and accounts.
For this update, start with one saved development task and verify what comes back before extending the pattern to more consequential work.
Book a conversation if you want help choosing a bounded AI task for your team's existing tools.
Jake