Continue a Codex session
codex_continueResume a Codex session by session ID with a follow-up prompt to address review feedback, preserving the existing context.
Instructions
Resume an existing Codex session by sessionId with a follow-up prompt — typically review feedback that Codex should address. Preserves Codex context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute path of the workspace Codex should work in | |
| model | No | Codex model override | |
| prompt | Yes | Follow-up instruction, e.g. review findings to fix | |
| sandbox | No | Codex sandbox policy (default: workspace-write) | workspace-write |
| terminal | No | Open a Terminal window streaming live progress (default: env CODEX_MCP_TERMINAL=1) | |
| sessionId | Yes | Session/thread id returned by a previous codex_execute call | |
| timeoutMs | No | Max execution time per attempt in ms; auto-resume may add attempts (default: 60 minutes) | |
| writeNotes | No | Persist a markdown summary of this run to <cwd>/.codex-flow/notes/<sessionId>.md (default false). | |
| reasoningEffort | No | Reasoning effort override for the selected model |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | ||
| runId | Yes | ||
| usage | Yes | ||
| errors | Yes | ||
| status | Yes | ||
| stderr | Yes | ||
| aborted | Yes | ||
| liveLog | Yes | ||
| attempts | No | ||
| commands | Yes | ||
| exitCode | Yes | ||
| timedOut | Yes | ||
| warnings | Yes | ||
| notesPath | Yes | ||
| sessionId | Yes | ||
| turnCount | Yes | ||
| attribution | Yes | ||
| fileChanges | Yes | ||
| parseErrors | Yes | ||
| agentMessage | Yes | ||
| resumeReasons | No | ||
| sawCompletion | Yes | ||
| schemaVersion | Yes | ||
| unknownEvents | Yes | ||
| outputTruncated | Yes |