Skip to content

fix(web): show context usage percent on the meter - #7681

Closed
shubhxho wants to merge 2 commits into
pingdotgg:mainfrom
shubhxho:fix/context-meter-percentage
Closed

shubhxho wants to merge 2 commits into
pingdotgg:mainfrom
shubhxho:fix/context-meter-percentage

Conversation

@shubhxho

@shubhxho shubhxho commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

The context ring already knew the percentage. It just hid it in the hover popover.

The number now sits under the ring at 9px so you can read usage without hovering. The popover still has the token breakdown.

Fixes #7651


Note

Cursor Bugbot is generating a summary for commit fc442c3. Configure here.

Note

Show context usage percentage on ContextWindowMeter trigger

Updates ContextWindowMeter.tsx to render the usedPercentage value as a small text span next to the ring SVG. The trigger button now uses cn(...) to switch from a square size-7 layout to a wider h-7 w-auto layout when usedPercentage is present.

Risk: visual sizing of the meter trigger changes when a percentage is available; callers not passing usedPercentage keep the original icon-sized button.

Macroscope summarized c6a6e10.

The ring already had the number in its aria-label and popover. Put it under the ring so you don't have to hover.

Fixes pingdotgg#7651
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ef3721a2-0504-47dc-8d8a-16d98523e624

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 20, 2026

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One finding: the trigger now overrides the icon-sm height at the call site, which breaks the composer footer's shared control geometry. Details inline.

Posted via Macroscope — UI Consistency

@macroscopeapp

macroscopeapp Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at c6a6e10

Macroscope's review found this PR approvable — Simple UI enhancement that displays the already-computed context usage percentage on the meter. Changes are purely presentational (conditional styling and text display) with no logic or behavioral modifications.

You can add or adjust custom eligibility rules. Learn more.

@juliusmarminge

Copy link
Copy Markdown
Member

Closing as superseded — the linked issue #7651 was closed as not planned.

@shubhxho
shubhxho deleted the fix/context-meter-percentage branch September 4, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Show the context percentage on the meter, not only in its popover

2 participants