Shared OpenAI client closed by streaming watchdog
Cluster 70773. Data as of
Nothing open on GitHub. Fix merged in #70993 on 24 Jul 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 #70993. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #70993. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and fixes concern a bug where a streaming watchdog closes the shared OpenAI client from a non-owner thread, causing file-descriptor recycling that corrupts SQLite via TLS. The problem affects both the built-in and custom OpenAI-compatible providers.
Open issues0
Open PRs0
Fixes on record
-
#70993 fix(agent): stop cross-thread close of the shared OpenAI client (TLS FD-recycle SQLite corruption)
files:
agent/agent_runtime_helpers.py,agent/chat_completion_helpers.py,run_agent.py,tests/run_agent/test_70773_shared_client_fd_corruption.py,tests/run_agent/test_primary_runtime_restore.py,tests/run_agent/test_run_agent.py,tests/run_agent/test_run_agent_codex_responses.py
2 PRs closed without merging
From the close comments: done elsewhere 1 · merged via another change 1
Closed issues · 1
- Closed#70773Custom OpenAI-compatible provider still corrupts SQLite via TLS FD reuse in v0.18.2 — streaming stale watchdog closes shared client pool from non-owner thread
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
- Merged PRs
- #70993
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 24 Jul 2026