opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Show context usage in OpenCode Desktop

Open aklajnert opened this issue 1 month ago • 3 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

On OpenCode Desktop there is no visible context usage indicator (tokens used / context percentage) in the GUI, which makes it hard to understand when a session is close to the context limit or when compaction is happening. This feature exists in the TUI (which shows a context‑percentage meter), but there is no equivalent in the Desktop app. ​

The OpenCode Desktop experience feels much better than the terminal equivalent, but one of the main reasons I want to use OpenCode instead of the Copilot plugin in VS Code is the context usage indicator, which is currently missing in both VS Code and OpenCode Desktop.

aklajnert avatar Dec 21 '25 09:12 aklajnert

This issue might be a duplicate of existing issues. Please check:

  • #570: context and cost display should be prioritized over directory path when screen width is narrow

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Dec 21 '25 09:12 github-actions[bot]

Created a POC for this, took some inspiration from cursors desing lmk what you think and if I should create a pr @adamdotdevin

Image Image

ShpetimA avatar Dec 21 '25 12:12 ShpetimA

Created a POC for this, took some inspiration from cursors desing lmk what you think and if I should create a pr @adamdotdevin

Image Image

yeah, PR would be great, thank you!

adamdotdevin avatar Dec 21 '25 18:12 adamdotdevin

@adamdotdevin created a pr whenever you have time feel free to check it out

ShpetimA avatar Dec 22 '25 18:12 ShpetimA

@adamdotdevin created a pr whenever you have time feel free to check it out

Merged!

adamdotdevin avatar Dec 22 '25 19:12 adamdotdevin