fix: ensure reasoning tokens arent double counted when calculating usage (#21047)

pull/21053/head
Aiden Cline 2026-04-04 15:29:53 -07:00 committed by GitHub
parent 930e94a3ea
commit 280eb16e77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ export namespace Session {
const tokens = {
total,
input: adjustedInputTokens,
output: outputTokens,
output: outputTokens - reasoningTokens,
reasoning: reasoningTokens,
cache: {
write: cacheWriteInputTokens,