Skip to content

feat(web): add an optional subscription usage bar in chat - #28716

Closed
Haorui117 wants to merge 2 commits into
pingdotgg:mainfrom
Haorui117:feat/persistent-usage-bar-ui
Closed

Haorui117 wants to merge 2 commits into
pingdotgg:mainfrom
Haorui117:feat/persistent-usage-bar-ui

Conversation

@Haorui117

@Haorui117 Haorui117 commented Nov 1, 2026 •

Copy link
Copy Markdown

Problem

Subscription quotas are available on Usage → Limits or through /usage-limits, but the in-chat panel closes on the next message. Users who want to monitor remaining quota throughout a conversation must repeatedly reopen it or leave the chat.

Change

Add Settings → Chat → Subscription usage bar, off by default and saved per app/browser. When enabled, a footer shows the selected provider/account’s remaining quotas, provider icon, reset/update tooltips, offline status, and a link to Usage. It reads existing provider snapshots without adding polling or provider requests.

The setting is searchable and supports both an individual reset and Restore defaults. Disabling it hides the footer; embedded side chats do not get a duplicate bar.

Scope and approval

This covers the shared web/desktop chat UI, client-settings schema and patch, browser tests, and user guidance for the same optional display capability. Native mobile UI and provider/backend behavior are unchanged. Cursor backend fixes are excluded.

The existing capability is subscription-limit reporting; the option controls whether that information stays visible in chat. The default layout remains unchanged. No prior maintainer approval is claimed. Maintainers should determine whether this qualifies as focused configuration of an established capability or requires an Ideas discussion. Draft status does not exempt it from contribution policy.

Verification

vp run check:changed upstream/main passed against base 1d626d02d95f: formatting, lint, both knip passes, affected-package typechecks, 106 tests across eight files, and React compiler checks for all four changed components.

Component browser tests cover live quota updates, provider/account switches, cached offline readings, failed probes, missing windows, keyboard-accessible reset details, and navigation to Usage.

In an isolated dev client, using T3’s Browser panel and a completed free Replay (dev) conversation:

  • A fresh client had the setting off and no footer.
  • Enabling it showed the footer; Replay correctly reported subscription usage as unavailable.
  • A full page reload preserved the enabled setting.
  • Resetting to default turned it off, removed the reset action, and hid the footer on returning to the conversation.

After signing into Claude, a real account snapshot was also checked in Chrome: the bar showed 98% Weekly remaining and 100% Weekly · Fable remaining. Disabling and re-enabling the setting hid and restored those values. No paid provider turn was run; quota/account transitions remain covered by the component browser tests.

Full-resolution Chrome screenshots (3728 × 2006) from the isolated dev client show the same Claude draft with the bar hidden and enabled with real quota values, plus the Settings toggle.

Before — default layout, bar hidden

Before: subscription usage bar hidden

After — bar enabled

After: Claude subscription usage bar showing real weekly quotas

Settings: Chat toggle

Subscription usage bar setting enabled

Model: GPT-6 Astra. Harness: Codex in T3 Code.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 1, 2026
@Haorui117 Haorui117 changed the title feat(web): keep subscription usage visible in chat feat(web): add an optional subscription usage bar in chat Nov 1, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

This has been a draft with no activity for more than three days, so it is being closed: the open pull requests are kept to work that is ready to be looked at.

Nothing is lost, the branch stays. When the work is ready, open a new pull request for it; this one will not be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 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.

2 participants