Skip to content

Commit 280eb16

Browse files
authored
fix: ensure reasoning tokens arent double counted when calculating usage (anomalyco#21047)
1 parent 930e94a commit 280eb16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/session/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export namespace Session {
278278
const tokens = {
279279
total,
280280
input: adjustedInputTokens,
281-
output: outputTokens,
281+
output: outputTokens - reasoningTokens,
282282
reasoning: reasoningTokens,
283283
cache: {
284284
write: cacheWriteInputTokens,

0 commit comments

Comments
 (0)