Skip to content

feat(responses): support native Beta WebSocket helpers - #4227

Closed
markstuart-oai wants to merge 1 commit into
mainfrom
codex/python-beta-websocket-helpers-20261102
Closed

markstuart-oai wants to merge 1 commit into
mainfrom
codex/python-beta-websocket-helpers-20261102

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Native Beta Responses connections currently fail managed-session type checking, and caller-fed accumulators reject their lifecycle responses. After a created event, managed collection can also expose a stable parsed response instead of the native Beta model.

Let managed session and lane types follow the connection family, and add response_type=BetaResponse for caller-fed collection. Keep stable defaults and the shared validation engine. Return an isolated native Beta final with its received fields, including opaque metadata and authoritative empty output.

Validation:

  • 603 focused helper cases pass under each supported Pydantic major, including 30 Beta controls.
  • Native stable/Beta typing examples pass; eight wrong-family/default-stable controls remain rejected in each environment.
  • Pinned Ruff, formatting and project type checks pass. The local project type check uses existing cached provider/dev type paths; hosted CI will run the standard complete environment.

@markstuart-oai
markstuart-oai requested a review from a team as a code owner November 2, 2026 03:47
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T03:49:02.169832Z f26debe PR opened
🔒 Security Review ✅ Completed 2026-11-02T03:49:06.040082Z f26debe PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants