Sanitizer consolidation for tool-call pair logic
Cluster 58357 · agent. Data as of
Nothing open on GitHub. Fix merged in #97167 on 28 Aug 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #97167. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #97167. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These items address deduplication, whitespace handling, orphan detection, and structural consolidation of tool-call pair sanitizers across agent and compression code. The work focuses on reducing drift between parallel implementations by extracting shared logic into canonical helpers.
Open issues0
Open PRs0
Fixes on record
-
#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
1 PR closed without merging
From the close comments: merged via another change 1
-
#59434 refactor(sanitizer): extract shared _classify_tool_call_orphans to eliminate drift · merged via another change →
#97167
Closed issues · 1
- Closed#58357refactor(compression): consolidate _sanitize_tool_pairs with the canonical agent_runtime_helpers sanitizers (dedup/whitespace/orphan drift)
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.67: 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
- #97167
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 28 Aug 2026