Raw tool markup leaking into assistant text on stream cut
Cluster 101899. Data as of
Nothing open on GitHub. Fix merged in #102052 on 3 Sep 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 #102052. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #102052. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and fixes address a bug where interrupted or cut streams during tool-call serialization cause raw tool markup to appear as assistant message content. The concern spans detection, prevention, and persistence of this corrupted state.
Open issues0
Open PRs0
Fixes on record
-
#102052 fix(agent): stream cut mid tool-call markup no longer shows as assistant text (#101899, redo #101923)
files:
agent/agent_runtime_helpers.py,cli.py,tests/run_agent/test_strip_reasoning_tags_cli.py
1 PR closed without merging
From the close comments: partial fix 1
-
#101923 fix(streaming): stop raw tool markup from corrupting interrupted turns · partial fix →
7b72fd1,#102052
Closed issues · 1
- Closed#101899agent: stream cut mid-tool-call-serialization persists raw arg markup as assistant content (finish_reason=stop)
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
- Merged PRs
- #102052
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 3 Sep 2026