docs(codex): add Resume a session section#291
Open
OndrejDrapalik wants to merge 1 commit into
Open
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
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.
What
Adds a
## Resume a sessionsection to the Codex agent page (docs/agents/codex.mdx), between "Streaming events" and "Image input" — mirroring the Claude Code page's resume section.Upstream Codex CLI has supported headless session resumption since rust-v0.36.0 (openai/codex#3537): run the first task with
codex exec --json, capturethread_idfrom thethread.startedevent, thencodex exec resume <thread_id> "follow-up". Our page documented none of it.Verification
Both tabs are verbatim-runnable — extracted byte-identical from the mdx and executed against real E2B sandboxes (template codex-cli 0.142.5), exit 0, with cross-turn state recall confirmed (turn 2 implements the plan created in turn 1).
Notable: the flag ordering matters on current codex —
-Cis rejected after theresumesubcommand, so the prose documents passing it before (codex exec -C /home/user/repo resume <id> "..."). Also verified:codex exec resume --last, and resume composing with sandboxpause()/connect().mintlify broken-linkspasses;<CodeGroup>tags balanced.Linear
Fixes INT-85