codex - 💡(How to fix) Fix codex exec resume should support --output-schema

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

fails because --output-schema is not accepted on exec resume.

Code Example

codex exec resume <SESSION_ID> --json --output-schema schema.json -o output.json "follow-up prompt"

---

codex exec resume <SESSION_ID> \
  --json \
  --output-schema schema.json \
  -o output.json \
  "follow-up prompt"
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

CLI, headless mode

What feature would you like to see?

codex exec resume should support --output-schema <FILE>, matching top-level codex exec.

Follow-up to #14343. That issue requested both -o and --output-schema for codex exec resume, but only the -o / --output-last-message part appears to be completed via #12538. Current codex exec resume --help shows -o, but not --output-schema.

Current behavior:

codex exec resume <SESSION_ID> --json --output-schema schema.json -o output.json "follow-up prompt"

fails because --output-schema is not accepted on exec resume.

Why this matters:

Multi-turn automation needs both:

  • resumed conversation/session context
  • schema-validated JSON output for each resumed turn

Without this, automated workflows have to choose between memory and structured output, or add brittle post-processing around free-form final messages.

Expected behavior:

codex exec resume <SESSION_ID> \
  --json \
  --output-schema schema.json \
  -o output.json \
  "follow-up prompt"

should behave like codex exec --output-schema, but preserve the resumed session context.

Additional information

Related issues:

  • #14343: exact original request, closed as not planned due to low upvotes
  • #12538: completed -o / --output-last-message support for exec resume, but does not cover --output-schema

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING