Skip to content

[codex] Support sequential cutoff reasoning summaries - #31306

Merged
ashwinnathan-openai merged 9 commits into
mainfrom
codex/sequential-cutoff
Jul 7, 2026
Merged

[codex] Support sequential cutoff reasoning summaries#31306
ashwinnathan-openai merged 9 commits into
mainfrom
codex/sequential-cutoff

Conversation

@ashwinnathan-openai

@ashwinnathan-openai ashwinnathan-openai commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

When enabled for the OpenAI provider, Codex sends
stream_options.reasoning_summary_delivery = "sequential_cutoff" on HTTP and
WebSocket requests, including prewarm, and renders completed summary sections
from reasoning_summary_text.done. Flag-off and non-OpenAI behavior is
unchanged.

Expected rollout

reasoning 0 added
summary 0 done
summary 1 done
summary 2 starts
summary 2 cancelled / incomplete
reasoning 0 done  <-- cancel summary 2 work and mark it incomplete
message 1 added
message 1 text streams
message 1 completed

Depends on openai/openai#1096660.

@ashwinnathan-openai
ashwinnathan-openai marked this pull request as ready for review July 6, 2026 23:30
@ashwinnathan-openai
ashwinnathan-openai requested a review from a team as a code owner July 6, 2026 23:31
@ashwinnathan-openai
ashwinnathan-openai force-pushed the codex/sequential-cutoff branch from f7af93f to e56c3a2 Compare July 7, 2026 00:19
Comment thread codex-rs/core/src/client.rs Outdated
Arc::clone(&self.turn_state)
}

pub(crate) fn uses_sequential_cutoff_reasoning_summaries(&self) -> bool {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's not use the client as setting carrier.

Comment thread codex-rs/core/src/client.rs Outdated
};
if warmup {
ws_payload.generate = Some(false);
ws_payload.stream_options = None;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why does this matter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

unnecessary, dropping

Comment thread codex-rs/core/src/client.rs Outdated
} else {
(prompt.base_instructions.text.clone(), Some(tools))
};
let stream_options =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should probably be conditioned on openai model provider for now?

@ashwinnathan-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 8c4c7d1ae8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ashwinnathan-openai
ashwinnathan-openai merged commit 775ef7d into main Jul 7, 2026
35 checks passed
@ashwinnathan-openai
ashwinnathan-openai deleted the codex/sequential-cutoff branch July 7, 2026 03:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 7, 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.

2 participants