Fix empty tool_calls wedging DeepSeek sessions
Cluster 83312 · agent. Data as of
Nothing open on GitHub. Fix merged in #86654 on 15 Aug 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 #86654. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #86654. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and fixes address assistant messages with empty tool_calls arrays causing permanent session failures with DeepSeek. The work involves stripping empty tool_calls at the wire boundary and making the sanitization logic idempotent to prevent recurrence.
Open issues0
Open PRs0
Fixes on record
-
#86654 fix(agent): close the empty tool_calls 400 class at all three chokepoints (#83312, #77921)
files:
agent/agent_runtime_helpers.py,agent/transports/chat_completions.py,tests/agent/transports/test_chat_completions_empty_tool_calls.py,tests/run_agent/test_message_sequence_repair.py
2 PRs closed without merging
From the close comments: done elsewhere 1 · other 1
Closed issues · 1
- Closed#83312DeepSeek 400: assistant messages with empty tool_calls:[] wedge sessions permanently
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
- #86654
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 15 Aug 2026