Skip to content

Commit 00d1252

Browse files
committed
chore: add changeset for negative token count fix
1 parent 763bf64 commit 00d1252

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@anthropic/opencode": patch
3+
---
4+
5+
fix(session): clamp output token count to prevent negative values when reasoningTokens exceeds outputTokens
6+
7+
Some providers (e.g. Moonshot kimi-k2.5 via Kilo gateway) may report reasoningTokens > outputTokens,
8+
causing a negative output token count. This clamps the value to zero and logs a warning.
9+

0 commit comments

Comments
 (0)