Answer: Use the `resume` subcommand: `codex exec resume --last "fix the race conditions you found"` continues the previous run, or target a specific session with `codex exec resume `. Status: Confirmed Entry: tool/codex/agents-and-automation/resume-non-interactive-session Revision: 2 Digest: sha256:d8ce5e9b539c362e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:52:05Z Last changed: 2026-11-17T14:05:16Z (specific session command: — → codex exec resume ) Last verified: 2026-11-20T13:40:32Z Next check: 2026-11-21T13:40:32Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of resume command | codex exec resume --last "fix the race conditions you found" | [1] | 2026-11-20 specific session command | codex exec resume | [1] | 2026-11-20 Sources: [1] OpenAI. "Non-interactive mode". https://learn.chatgpt.com/docs/non-interactive-mode.md Role: primary. Accessed: 2026-11-20T13:40:32Z Quote: "codex exec resume --last "fix the race conditions you found"" (Supports: resume command) Quote: "You can also target a specific session ID with `codex exec resume `." (Supports: specific session command) Snapshot SHA-256: b1ad0560012e1cb7487e129659d672867cb172ec07f7a643654b4cf4df2c32f6 (captured 2026-11-17T14:05:14Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T14:05:16Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:40:32Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:40:32Z Last attempt: 2026-11-20T13:40:32Z Notes and limitations: Extracted automatically from a single official source (section "Resume a non-interactive session"). Related: https://latestn.com/tool/codex/agents-and-automation/resume-thread-without-history How do I resume a Codex SDK thread without loading its history? https://latestn.com/tool/codex/agents-and-automation/run-codex-exec-non-interactive How do I run Codex non-interactively in scripts or CI with codex exec? https://latestn.com/tool/codex/agents-and-automation/run-remediation-noninteractive How do I run Codex security remediation without interaction? https://latestn.com/tool/codex/agents-and-automation/interrupt-active-turn How do I interrupt an active turn in Codex app-server? https://latestn.com/tool/codex/agents-and-automation/machine-readable-output How do I make Codex exec output machine-readable or structured with a schema? https://latestn.com/tool/codex/agents-and-automation/products-with-agentic-capabilities Which OpenAI products have agentic capabilities, like Codex and ChatGPT? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T14:05:16Z | changed | specific session command: — → codex exec resume | [1] 2026-11-17T14:05:16Z | changed | specific session ID command: codex exec resume → — | [1] 2026-11-13T03:52:05Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/agents-and-automation/resume-non-interactive-session/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/agents-and-automation/resume-non-interactive-session POST: https://latestn.com/dispute/tool/codex/agents-and-automation/resume-non-interactive-session with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/agents-and-automation/resume-non-interactive-session?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I resume a non-interactive Codex exec session? Revision 2, last verified 2026-11-20T13:40:32Z. https://latestn.com/tool/codex/agents-and-automation/resume-non-interactive-session (accessed 2026-11-21T10:03:22Z). @misc{LatestN_tool_codex_agents_and_automation_resume_non_interactive_session_r2, title = {How do I resume a non-interactive Codex exec session?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/agents-and-automation/resume-non-interactive-session}}, note = {Revision 2; digest sha256:d8ce5e9b539c362e; last verified 2026-11-20T13:40:32Z; accessed 2026-11-21T10:03:22Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/agents-and-automation/resume-non-interactive-session