Skip to content

feat(web): show context usage as a segmented bar in the active composer - #16

Open
gstark wants to merge 2 commits into
upstream-base/v0.1.3from
pr/composer-context-meter
Open

gstark wants to merge 2 commits into
upstream-base/v0.1.3from
pr/composer-context-meter

Conversation

@gstark

@gstark gstark commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

The context window ring is small, and you had to hover it to see how full the context is. In the active composer there is room to show the number.

  • When the composer is active and not compact, the meter is a bar followed by the percent and the token count, for example 12% · 117k/1m. When the model has no known context limit, the meter shows only the token count. The resting and compact composers keep the ring.
  • The bar has four quarter cells. The gaps mark the full length and each 25% step, so a small fill still reads as a length and not as a dot. Empty cells use muted-foreground/20, so the track is visible. The hover popover uses the same segmented bar.
  • The fill uses the foreground color in the bar and the ring. It turns amber from 75% and red above 90%.
  • The runtime mode control shows only its icon now, to make room for the meter. Its tooltip and aria-label now name the mode.

Kept in sync from mine by fork-prs.

@gstark
gstark force-pushed the pr/composer-context-meter branch from 4d95911 to 250bbad Compare October 29, 2026 12:22
@gstark
gstark changed the base branch from base/v0.0.45 to upstream-base/v0.1.3 October 29, 2026 12:23
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