[Feature]: Temporarily prefer HTTP/SSE for subsequent Codex pool requests after repeated upstream WebSocket disconnects
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 16.9k
- フォーク
- 1.3k
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 814
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lidge-jun/opencodex のほかの issue
-
bug gui platform
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
lidge-jun/opencodex#9172 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Feature]: Include provider, model and account label in the `upstream failure` service.log line対応中かも @EnesKartal が 4 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
lidge-jun/opencodex#9057 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers対応中かも @sedoll が 6 日前に担当しました。 オープンcatalog provider provider-compatibility
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lidge-jun/opencodex#9037 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug cli
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
lidge-jun/opencodex#9171 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
account-pool enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
lidge-jun/opencodex の issue をすべて見る
似ている issue
-
manually bump balena-preload to ^19.0.6対応中かも @shaunmulligan が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 66/100
balena-io/balena-cli#3200 ·
メンテナーはふだん 1 日以内に返信
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOM対応中かも @olegius88 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melgarafael/DeskcommCRM#5340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
メンテナーはふだん 1 日以内に返信