-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui