# NousResearch/hermes-agent · Gemini native adapter thinking/reasoning token handling

## Open now

- 1 issue, 0 PRs open on GitHub.
- #102996: \[Bug\]: gemini_native: gemini-3-flash returns unmarked planning text (no \`thought: true\`), leaking internal reasoning into content with show_reasoning: false

These 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.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #121046. Verify it addresses your case.
- **Recommended:** read PR #121046 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #102996: \[Bug\]: gemini_native: gemini-3-flash returns unmarked planning text (no \`thought: true\`), leaking internal reasoning into content with show_reasoning: false

## Prior & competing PRs

- **#121046: fix(gemini): thinking tokens counted in usage and cost on the native adapter (salvage #103205)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/gemini_native_adapter.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_gemini_native_adapter.py`
- **#103002: fix(gemini): parse thoughtsTokenCount into usage reasoning_tokens on the native path**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `2364cde85a`, `#121046`, `#103205`

## Fix status

- Merged to main in PR #121046 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-24`.
- Subsystem: `agent`
