Skip to content

Support --output-schema for exec resume#23123

Merged
etraut-openai merged 2 commits into
mainfrom
etraut/exec-resume-output-schema
May 18, 2026
Merged

Support --output-schema for exec resume#23123
etraut-openai merged 2 commits into
mainfrom
etraut/exec-resume-output-schema

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented May 17, 2026

Why

codex exec resume should have the same structured-output support as top-level codex exec. Without --output-schema, multi-turn automation has to choose between resumed session context and schema-validated JSON output.

Fixes #22998.

What changed

  • Marked --output-schema as a global codex exec flag so it can be passed after resume.
  • Reused the existing output schema plumbing so resumed turns attach the schema to the final response request while preserving session context.

@etraut-openai etraut-openai marked this pull request as ready for review May 17, 2026 07:32
Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exercised the happy path and it worked as expected. Code looks good. 👍

@etraut-openai etraut-openai merged commit af6ffb6 into main May 18, 2026
31 checks passed
@etraut-openai etraut-openai deleted the etraut/exec-resume-output-schema branch May 18, 2026 15:55
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codex exec resume should support --output-schema

2 participants