Skip to content

Conversation

@rekram1-node
Copy link
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
aemr3 pushed a commit to aemr3/opencode that referenced this pull request Sep 18, 2025
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

2 participants