anthropics / anthropics/claude-code

total_tokens counter reset from 14.6M to 15M after a user interrupt

Offen
#94,339 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:core duplicate platform:macos
Vorherrschende Sprache
Python
Sterne
145k
Forks
23.1k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

**What happened**
The total_tokens indicator shown to the model read 14,601,730 before the user interrupted and 15,000,000 on the next turn. The running spend the model sees, and quoted to the user, is not reliable across an interrupt.

**What the user said**
"even if I need to burn my weekly allowance to get there"

**Repro**
Observe the counter across a user interrupt.

**Environment:** Claude Code CLI 2.1.270 (Claude Code), macOS, auto mode, model claude-fable-5-1, session of 2026-09-14.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.