Skip to content

[codex] Read retry model from buffering events - #31262

Merged
fc-oai merged 1 commit into
mainfrom
fc/read-safety-buffering-retry-model
Jul 6, 2026
Merged

[codex] Read retry model from buffering events#31262
fc-oai merged 1 commit into
mainfrom
fc/read-safety-buffering-retry-model

Conversation

@fc-oai

@fc-oai fc-oai commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • deserialize retry_model from streamed safety_buffering payloads
  • preserve the existing downstream faster-model API and legacy header fallback
  • update SSE, WebSocket, and end-to-end safety-buffering coverage

Root cause

Follow-up to #31064. The Responses API emits the retry target as retry_model, but the client was looking for faster_model, so the payload value was ignored in favor of the compatibility fallback.

Behavior

A non-null retry_model from the buffering payload takes precedence. An explicit null leaves the retry target unset, while an omitted field continues to fall back to the existing response header.

Validation

  • just test -p codex-api (135 tests)
  • just test -p codex-core safety_buffering (2 tests)
  • just fix -p codex-api
  • just fmt
  • git diff --check

@fc-oai
fc-oai marked this pull request as ready for review July 6, 2026 16:48
@fc-oai
fc-oai requested a review from a team as a code owner July 6, 2026 16:48
@fc-oai

fc-oai commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 0f52ba2a12

ℹ️ 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".

@fc-oai
fc-oai enabled auto-merge (squash) July 6, 2026 16:57
@fc-oai
fc-oai merged commit 7094fa4 into main Jul 6, 2026
35 checks passed
@fc-oai
fc-oai deleted the fc/read-safety-buffering-retry-model branch July 6, 2026 17:04
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 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