You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
web and tui reports token usage differently. #3322
Web reports input tokens usage at 400k, while TUI only ~70K
As far as I can tell the TUI version is the actually correct one. If this is actually a bug I'm happy to do a PR to align the web tokens report to the TUI.
The issue is less of a bug, and more bad UX. both of the numbers reflected a meaningful reality, the context number is "how many tokens are currently part of the agents context window" and the numbers on the website were "how many tokens did we have to send to, and receive from, the API, to get to the current state"
And you send the full context each time you make a request, and you get back some amount of tokens that then become a part of the context.
Activity
github-actions commentedon Oct 21, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 21, 2025
we shall fix
riatzukiza commentedon Oct 22, 2025
I'll take a swing at this.
riatzukiza commentedon Oct 24, 2025
The issue is less of a bug, and more bad UX. both of the numbers reflected a meaningful reality, the context number is "how many tokens are currently part of the agents context window" and the numbers on the website were "how many tokens did we have to send to, and receive from, the API, to get to the current state"
And you send the full context each time you make a request, and you get back some amount of tokens that then become a part of the context.
docs: align TUI context tokens with session totals (anomalyco#3322)
github-actions commentedon Apr 16, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.