[Feature]: Temporarily prefer HTTP/SSE for subsequent Codex pool requests after repeated upstream WebSocket disconnects
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- backend
Hướng nghiên cứu
Start by tracing the canonical ChatGPT/Codex upstream transport selection in account-pool mode and the existing retryOnReset handling described in issue #4191. The change needs route and account scoped cooldown state, expiry probing, and transport reason logging while preserving replay and account selection rules. Done means eligible later requests prefer HTTP/SSE after repeated qualifying disconnects, then probe WebSocket after expiry; the issue does not name specific files or tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Area
Canonical ChatGPT/Codex upstream transport in account-pool mode.
What are you trying to accomplish?
Keep WebSocket available for connection reuse and native mid-turn steering where the route is healthy, while avoiding repeated WebSocket failures on the same route. The transport decision should apply to a later, independently submitted request and preserve the pool's existing account selection and replay rules.
Observed behavior
On macOS with Codex Desktop, OpenCodex 2.100.4, a pinned Pro pool account, and GPT-6.2 Sol in Fast mode, three requests from the same long-running conversation had this result:
| Client request body | Upstream transport | Upstream / relayed events | Pong replies | Close | Gateway result |
|---|---|---|---|---|---|
| 8,517,884 bytes each | WebSocket | 0 / 0 | 0 after 6 pings | 1011 | 502 after about 83–86 s each |
After setting providers.openai.upstreamWebsocket=false, the same conversation, account and model recorded 138 successful requests in a roughly 12-minute observation window on the same OpenCodex version. Of those, 33 had client request bodies at least as large as the failed requests. This is a before/after observation from normal work, with different request contents and no controlled proxy-node comparison. The actual source of the reset and any size threshold remain undetermined. On 2.100.5, the provider-wide switch still selects HTTP/SSE.
What should OpenCodex do?
- Consider an opt-in transport cooldown scoped to the selected account and upstream route/egress. After repeated upstream WebSocket disconnects that occur after send and before any response event, prefer HTTP/SSE before dispatching subsequent requests on that route. Leave other accounts and routes on their usual transport.
- When the cooldown expires, let one otherwise eligible new request probe WebSocket and resume normal selection after a successful exchange. Keep the explicit provider-wide HTTP/SSE override authoritative.
- Log the selected upstream transport and the cooldown reason, including failure stage and close code where available. Preserve the existing decision on whether an already-sent request can be replayed. A missing response event alone cannot tell us whether upstream accepted the request.
#4191 closed after adding a conditional single HTTP/SSE replacement for an eligible current request under retryOnReset. A comment on that issue independently describes a temporary SSE preference for subsequent requests. This proposal is for that transport selection policy, with another observed case and no change to account switching or cross-account cache isolation.
- Ngôn ngữ chính
- TypeScript
- Star
- 16.9k
- Fork
- 1.3k
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 814
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lidge-jun/opencodex
-
bug gui platform
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
lidge-jun/opencodex#9172 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature]: Include provider, model and account label in the `upstream failure` service.log lineCó thể đã có người làm @EnesKartal đã nhận 4 ngày trước. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lidge-jun/opencodex#9057 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersCó thể đã có người làm @sedoll đã nhận 6 ngày trước. Đang mởcatalog provider provider-compatibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
lidge-jun/opencodex#9037 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug cli
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
lidge-jun/opencodex#9171 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
account-pool enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của lidge-jun/opencodex
Issue tương tự
-
manually bump balena-preload to ^19.0.6Có thể đã có người làm @shaunmulligan đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 66/100
balena-io/balena-cli#3200 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMCó thể đã có người làm @olegius88 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
melgarafael/DeskcommCRM#5340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Maintainer thường phản hồi trong vòng 1 ngày