Skip to content

fix: token counting visual bug - #2587

Merged
rekram1-node merged 1 commit into
devfrom
fix-token-counting
Sep 14, 2025
Merged

fix: token counting visual bug#2587
rekram1-node merged 1 commit into
devfrom
fix-token-counting

Conversation

@rekram1-node

@rekram1-noderekram1-node commented Sep 14, 2025

Copy link
Copy Markdown
Collaborator

fixes: #1937

I managed to replicate the bug example:

 "tokens": {
"input": 12112,
"output": 11,
"reasoning": 0,
"cache": {
"write": 0,
"read": 12032
}
},
 "tokens": {
"input": 12112,
"output": 11,
"reasoning": 0,
"cache": {
"write": 0,
"read": 0
}
},

Even tho these 2 amount to same # of tokens, the TUI was showing #1 as ~24k tokens and #2 as ~12k

@rekram1-node
rekram1-node merged commit 3752bb9 into devSep 14, 2025
3 checks passed
@rekram1-noderekram1-node mentioned this pull request Sep 15, 2025
@thdxr
thdxr deleted the fix-token-counting branch February 1, 2026 03:31
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent Session Token Count

1 participant

@rekram1-node