Gemini native adapter thinking/reasoning token handling
Cluster 102996 · agent. Data as of
1 open item. Fix merged in #121046 on 24 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 0 issues already closed.
- Fix event
- A fix was merged to main in PR #121046. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
unresolved. That is separate from the fix event. - Still open
- 1 issue and 0 PRs.
Next step: read #121046, then check whether your report is the one still open.
Read #121046Pick up a Lab taskThese items address bugs in the Gemini native adapter related to reasoning tokens: leaked planning text appearing in content and thinking token counts not being correctly parsed into usage and cost tracking.
Open issues1
- Issue#102996[Bug]: gemini_native: gemini-3-flash returns unmarked planning text (no `thought: true`), leaking internal reasoning into content with show_reasoning: false
Open PRs0
Fixes on record
-
#121046 fix(gemini): thinking tokens counted in usage and cost on the native adapter (salvage #103205)
files:
agent/gemini_native_adapter.py,contributors/emails/[redacted:email],tests/agent/test_gemini_native_adapter.py
1 PR closed without merging
From the close comments: done elsewhere 1
-
#103002 fix(gemini): parse thoughtsTokenCount into usage reasoning_tokens on the native path · done elsewhere →
2364cde,#121046,#103205
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
- #121046
- Closed issues
- 0
- Attempts
- 1 PR closed without merging
- Fix link checked
- 24 Sep 2026