Skip to content

feat: show context and token usage in the status bar - #407

Open
msamoilenko wants to merge 1 commit into
lessweb:mainfrom
msamoilenko:pr/status-bar
Open

msamoilenko wants to merge 1 commit into
lessweb:mainfrom
msamoilenko:pr/status-bar

Conversation

@msamoilenko

Copy link
Copy Markdown

Problem

The context meter lives inside the webview, so token and context usage is only visible when the Deep Code panel is open.

Change

  • Add a status bar item showing active context and window usage, for example 20.8k / 1.0M (2%).
  • The tooltip shows model, context, prompt, completion, cached, and reasoning tokens.
  • Clicking the item opens the Deep Code view.
  • Reuses the existing telemetry; no extra API calls.

Verification

  • npm run check passes.
  • VS Code suite: 90 passing.
  • Runtime test with a mocked vscode API: item created and shown, correct text and tooltip, disposed correctly.

Add a status bar item with active context usage and a tooltip with prompt, completion, cached, and reasoning tokens. Clicking the item opens the Deep Code view.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant