Documented new TUI Context tab

This commit is contained in:
opencode-agent[bot]
2026-01-01 12:13:12 +00:00
parent 41f9a58c27
commit 13f839eb69

View File

@@ -27,6 +27,26 @@ Give me a quick summary of the codebase.
---
## Session context
OpenCode tracks token usage and cost for each session. You can open the **Context** tab from the context indicator in the session header.
- Hover the indicator to see a quick tooltip (tokens, % usage, cost).
- Click it to open the **Context** tab.
The **Context** tab includes:
- Provider/model details and the model's context limit
- Token totals (input/output/reasoning/cache) plus an approximate breakdown
- The latest system prompt (if one was set)
- Raw message JSON for debugging
:::note
The breakdown is an estimate; providers tokenize content differently.
:::
---
## File references
You can reference files in your messages using `@`. This does a fuzzy file search in the current working directory.