fix(proxy): retry websocket EOF before visible output - #1388
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e25161d93
ℹ️ 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".
c99b7b6 to
ce3c23f
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce3c23f6a3
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49abb6d490
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ 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". |
|
This pull request has been automatically marked as stale because it has had no activity for 7 days. It will be closed in 23 more days unless there is new activity. If this is still relevant, please:
Thanks for the contribution 🙏 |
|
This PR is currently conflicting with |
248eee7 to
40c6c6e
Compare
40c6c6e to
0eb65c4
Compare
|
Thanks for the rebase — CI is green on the new head and the earlier codex P1/P2 findings look genuinely addressed (backoff now sleeps only after the replay is re-registered in Three items before this is mergeable:
Minor: this PR, #1402, and #1384 all touch |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0eb65c4c81
ℹ️ 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".
|
Maintainer decision on the round-4 classification question: the replay-budget increase (1→3 + jittered backoff) is accepted as a behavior change that will ride the normal beta soak after merge — it will NOT be held behind the stable cut. So the remaining blockers are only: (1) the two codex P2s on websocket/mixin.py (owner loop awaiting a not-done reader during retire-after-drain; blanket handler swallowing the owner's CancelledError and leaking reservations), (2) rebase across #1562/#1394. Fix those and this proceeds to merge. |
0eb65c4 to
8eef569
Compare
8eef569 to
3140874
Compare
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ 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". |
|
Triage re-verification passed today: both codex P2s are addressed at |
3140874 to
8a7fe6e
Compare
bf8cdd9 to
1676031
Compare
Summary
Adds bounded transparent retry for Codex websocket upstream EOFs that happen after
response.createdbut before any downstream-visible text/tool output. This keeps transientno close frame received or sentupstream disconnects inside codex-lb instead of making Codex CLI spend a long reconnect loop on every affected thread.Type of change
fix:— bug fix (no behavior change beyond the bug)Linked issue: n/a
OpenSpec
Change directory: n/a
Changes
Simplicity
simplicity-budget-approvedlabel).env.example/ dashboard nav within budget (orsimplicity-budget-approvedlabel requested)Test plan
Screenshots / output
Proxy behavior: repeated upstream websocket EOFs before visible output are retried internally; the downstream sees the original
response.createdfollowed by the final terminal event using the original response id.Checklist
<type>(<scope>)?: <subject>).uv run pre-commit run local-ci --hook-stage manual --all-filesor the relevantmake <target>subset locally.openspec validate --specspasses and/opsx:verifyis clean.