[PR #2587] fix: token counting visual bug #10364

Closed
opened 2026-02-16 18:15:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2587

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2587 **State:** closed **Merged:** Yes --- 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
yindo added the pull-request label 2026-02-16 18:15:00 -05:00
yindo closed this issue 2026-02-16 18:15:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10364