WebSocket disconnect/reconnect session race conditions
Cluster 77127 · gateway. Data as of
Nothing open on GitHub. Fix merged in #96438. Check it covers your case.
The short answer
- Known?
- Yes. 5 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #96438. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #96438. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These items address race conditions and TOCTOU bugs in the TUI gateway where WebSocket disconnect and reconnect sequences can incorrectly close or orphan sessions that have already resumed. Includes related regression tests.
Open issues0
Open PRs0
Fixes on record
-
#96438 fix(tui-gateway): a reconnected session no longer dies to the old socket's disconnect teardown (#77127, salvage #95197)
files:
tests/test_tui_gateway_server.py,tui_gateway/server.py
3 PRs closed without merging
From the close comments: done elsewhere 2 · superseded by another PR 1
- #77129 fix(tui-gateway): close WS disconnect/reconnect session race · done elsewhere
-
#77212 fix(tui-gateway): WS disconnect/reconnect TOCTOU fix + real regression test (RAH-05 + RAH-06) · superseded by another PR →
#77129,#77127,#77191,#77192 -
#95709 fix(tui-gateway): serialize WS session transport ownership · done elsewhere →
7c28eda,0dfba37
Closed issues · 1
- Closed#77127WS disconnect teardown race can close or orphan a session reconnected via session.resume
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.40: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- gateway
- Merged PRs
- #96438
- Closed issues
- 1
- Attempts
- 3 PRs closed without merging
- Fix link checked
- 27 Aug 2026