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
session-cost/spent-value under reported for sessions with 100+ messages #7767
The TUI sidebar displays incorrect spent value for sessions that exceed 100 messages. The cost only accumulates from the last 100 messages stored in memory, not from all messages that exist in the session.
Plugins
No response
OpenCode version
1.1.12
Steps to reproduce
Start a new session with a paid model.
Continue conversation until you have > 100 messages (requires iterative work over several hours/days).
Check the spent value displayed in the sidebar.
Compare with actual cost (using Zen dashboard).
Expected: Sidebar shows accurate total cost from all messages including messages that were reverted.
Actual: Sidebar shows cost only from the last ~100 messages.
Activity
github-actions commentedon Jan 11, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
github-actions commentedon Mar 25, 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.