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
Total cost changes based on loaded messages in a session in the Desktop App #28836
IMPORTANT: issue only on desktop app and not on TUI
when there is a long session of messages, the total cost only shows the loaded messages costs. to see the actual total cost of the session one needs to scroll all they way up to the first message in the session to see the actual total cost.
Plugins
no plugins
OpenCode version
1.15.7
Steps to reproduce
1- have a long session of messages so that they are not all loaded in the session
2- close the session and reopen after creating the long session
3- take a look at the cost
4- load the rest of the messages by scrolling up
5- you will see that total cost has been increased
Yeah its weird, there was a PR merged that helps with keeping the totals of values like this on its own column in the DB, I can work on making the desktop move to using this #26644
Activity
github-actions commentedon May 22, 2026
This issue might be a duplicate of existing issues. Please check:
AHScripting commentedon May 22, 2026
No, the issue the bot gave is in the TUI but the issue i found was in the desktop app and it doesn't have to do with compaction.
OpeOginni commentedon May 22, 2026
Yeah its weird, there was a PR merged that helps with keeping the totals of values like this on its own column in the DB, I can work on making the desktop move to using this #26644
Working on a PR now!