feat(api): add WebSocket stream IDs - #861
Conversation
💡 Codex ReviewWhen a ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 27792da10e
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8c12bfb9f
ℹ️ 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".
HAYDEN-OAI
left a comment
There was a problem hiding this comment.
Re-reviewed all changed files and the stable/beta WebSocket stream-ID paths at commit e20237c. The earlier malformed-accessor and factory-serialization issues are resolved, but one substantive validation-contract issue remains in both server-event unions; see the inline comment.
HAYDEN-OAI
left a comment
There was a problem hiding this comment.
Re-reviewed the current head and confirmed stable and beta WebSocket stream IDs preserve factory/deserialization behavior, reject malformed values, and are validated consistently by both server-event unions. All previously reported substantive issues are resolved.
Automated Release PR --- ## [4.51.0](v4.50.0...v4.51.0) (2026-08-14) ### Features * **api:** Add GPT_DAYBREAK and GPT_5_6_CYBER model identifiers ([5b9ba3a](5b9ba3a)) * **api:** add WebSocket stream IDs ([#861](#861)) ([4936d0b](4936d0b)) * **api:** add workload identity access token issued event ([#859](#859)) ([2b763fe](2b763fe)) * **api:** deprecate Sora video APIs ([#860](#860)) ([a191575](a191575)) * **api:** Ultrafast tier, structured MCP and websocket errors, separate websocket events ([#863](#863)) ([ec274a8](ec274a8)) ### Bug Fixes * **api:** Add GPT_DAYBREAK and GPT_5_6_CYBER model identifiers ([#856](#856)) ([5b9ba3a](5b9ba3a)) * **api:** clarify audio upload metadata requirements ([#857](#857)) ([593f04c](593f04c)) * restore ProGuard configuration caching ([#842](#842)) ([fb8daa4](fb8daa4)) ### Chores * **api:** Update generated file header text ([#846](#846)) ([d11a357](d11a357)) * remove Stainless attribution and infrastructure ([#858](#858)) ([942a097](942a097)) ### Documentation * **api:** describe response stream event unions ([#862](#862)) ([73b39b8](73b39b8)) * keep README badges on latest release ([#839](#839)) ([33c6b57](33c6b57)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
Summary
Adds optional WebSocket-only stream_id routing metadata to Responses client events and all server response events. Events sharing a stream ID are processed FIFO and response events echo that identifier.
Source: https://github.com/openai/openai/pull/1282468
OpenAPI commit: 1e5b3b1f1d21b51c5a37d6122c2b3b2d70ef5a1a
Validation