Race condition between close() and run_turn() in session
Cluster 87422 · agent. Data as of
Nothing open on GitHub. Fix merged in #115758 on 19 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #115758. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #115758. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and fixes address a concurrency race condition where calling close() while run_turn() is executing causes an AttributeError crash instead of a clean interrupt. The work focuses on preventing close() from conflicting with run_turn()'s client reads and poll loop.
Open issues0
Open PRs0
Fixes on record
-
#115758 fix(codex-app-server): closing or losing the app-server mid-turn ends the turn cleanly instead of hanging or crashing (#87433, #87422, #83127, salvage #87434 #83129 #87424)
files:
agent/transports/codex_app_server.py,agent/transports/codex_app_server_session.py,tests/agent/transports/test_codex_app_server.py,tests/agent/transports/test_codex_app_server_runtime.py,tests/agent/transports/test_codex_app_server_session.py
2 PRs closed without merging
From the close comments: duplicate 1 · merged via another change 1
Closed issues · 1
- Closed#87422[BUG]:codex_app_server_session: close() racing run_turn() raises AttributeError instead of a clean interrupt
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.50: 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
- agent
- Merged PRs
- #115758
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 19 Sep 2026