fix(proxy): retire stale HTTP bridge pending sessions#858
Conversation
68875e1 to
489a6cc
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ 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". |
|
Blocking race found in the stale-session retirement path.
I reproduced this locally against the PR head: start a second Please make retirement/admission mutually exclusive: mark the session closing/retiring before releasing the old request gate, and/or re-check |
|
Addressed the stale HTTP bridge admission/retirement race follow-ups.
|
1c7c0f9 to
6e91920
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e919204f3
ℹ️ 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: b525a31522
ℹ️ 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: 4594934488
ℹ️ 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. Bravo. ℹ️ 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". |
Summary
Fixes HTTP bridge sessions that can get stuck with stale pending work after an upstream websocket closes before
response.completed. Failed precreated replay now terminally fails pending requests, releases the response-create gate, retires the stale bridge session, and removes local/durable ownership so later same-session requests can recover on a fresh bridge instead of looping onproxy_overloaded.Type of change
fix:— bug fix (no behavior change beyond the bug)feat:— new user-facing feature or capabilityrefactor:— internal refactor (no behavior change, no API change)docs:— documentation onlychore:/ci:/build:— tooling, CI, packaging!after the type, e.g.feat!:or includeBREAKING CHANGE:footer)Linked issue: Not linked
OpenSpec
Change directory:
openspec/changes/bound-http-bridge-startup-waits/Changes
response_create_gate, release durable bridge ownership, and close the stale upstream websocket.Test plan
Linked issue:
Fixes #857
Screenshots / output (optional)
Local
codex exec review --uncommitted --full-auto --ephemeralcompleted and reported no actionable findings.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.