Skip to content

feat(responses): add WebSocket lane overflow isolation - #4225

Merged
markstuart-oai merged 1 commit into
mainfrom
codex/python-ws-lane-overflow-20261102
Nov 2, 2026
Merged

markstuart-oai merged 1 commit into
mainfrom
codex/python-ws-lane-overflow-20261102

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

A slow WebSocket lane currently closes the managed session when its event queue fills. Add isolate_lane_overflow=True to the sync and async session constructors. With this option, healthy lanes keep using the same connection. The default remains False.

Failed lanes discard queued events and collected response state. Reads keep raising the first buffer error. Their IDs stay reserved until reconnect. The guide explains how the session frees space when its queues fill. It also explains which events become unavailable when the default lane fails. Physical connection failures still end the session. This uses the existing router and reader, without new limits or dependencies.

Validation: all 200 focused session cases pass on Python 3.10/Pydantic 1 and Python 3.13/Pydantic 2. They cover both policies, all queue budgets, eviction, cached finals, default routing, transport failure and reconnect. Pinned Ruff, format and ty checks pass.

@markstuart-oai
markstuart-oai requested a review from a team as a code owner November 2, 2026 01:40
@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-02T01:42:05.129687Z b8e61c8 PR opened
🔒 Security Review ✅ Completed 2026-11-02T01:42:15.511747Z b8e61c8 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.

@markstuart-oai
markstuart-oai added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 16bdad1 Nov 2, 2026
26 checks passed
@markstuart-oai
markstuart-oai deleted the codex/python-ws-lane-overflow-20261102 branch November 2, 2026 03:14
@openai-sdks openai-sdks Bot mentioned this pull request Nov 2, 2026
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