Fix thinking-prefill marker causing Gemini 400 errors
Cluster 75121. Data as of
Nothing open on GitHub. Fix merged in #82930 on 10 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 #82930. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #82930. That is separate from the fix event. - Still open
- Nothing open on GitHub.
A bug where thinking-only prefill sends a trailing model turn to Gemini, triggering 400 errors because reasoning stripping runs before the thinking-only drop pass. The fixes preserve the thinking-prefill marker so the drop pass can correctly strip trailing stubs.
Open issues0
Open PRs0
Fixes on record
-
#82930 fix(agent): keep thinking-prefill marker so drop pass can strip trailing stubs
files:
agent/chat_completion_helpers.py,agent/conversation_loop.py,run_agent.py,tests/run_agent/test_thinking_only_sanitizer.py,tests/run_agent/test_thinking_prefill_trailing_turn.py
1 PR closed without merging
From the close comments: merged via another change 1
-
#75142 fix(agent): keep the thinking-prefill marker so the drop pass can strip trailing stubs · merged via another change →
#82930
Closed issues · 1
- Closed#75121[Bug]: Thinking-only prefill sends a trailing model turn to Gemini and 400s the turn, because reasoning stripping runs before the thinking-only drop pass
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
- #82930
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 10 Aug 2026