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
Add /context command to display session token usage #10575
Problem
OpenCode already tracks per-request token usage, but there’s no quick way to view it in the TUI. This makes it hard to check context headroom without leaving the session.
Proposal
Add a session-level /context command that opens a dialog showing last-request token usage, context limit, usable input budget, and cache hit ratio.
Scope
TUI only. No new tracking data; just a UI for existing usage fields.
Why this matters
Improves visibility into prompt headroom and cache usage while staying in the session flow.
Verification
I will include a short repro in the PR and before/after screenshots for the dialog.
Activity
github-actions commentedon Jan 25, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if this doesn't address your specific case.
github-actions commentedon Mar 27, 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.