Removing empty tool_calls in repair_message_sequence
Cluster 77921 · agent. Data as of
Nothing open on GitHub. Fix merged in #86654. 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 #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 items address a bug where empty tool_calls arrays persist in message sequences after repair_message_sequence runs. Fixes and a follow-up reproduction report are included.
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 -
#97167 fix(agent): tool-pair sanitizers — whitespace ids pair, stale empty tool_calls drop, orphan logic unified (salvage #55845 + #78063 + #59434)
files:
agent/agent_runtime_helpers.py,agent/context_compressor.py,tests/agent/test_context_compressor.py,tests/run_agent/test_message_sequence_repair.py
2 PRs closed without merging
From the close comments: merged via another change 1 · superseded by another PR 1
Closed issues · 1
- Closed#77921Still reproducing in v0.19.1: empty tool_calls after repair_message_sequence (follow-up to #58755)
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 Lab