Skip to content

fix: token counting visual bug#2587

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

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

Conversation

@rekram1-node
Copy link
Copy Markdown
Collaborator

@rekram1-node rekram1-node commented Sep 14, 2025

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 dev Sep 14, 2025
3 checks passed
@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/opencode that referenced this pull request May 5, 2026
Sign up for free to 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