Repository navigation
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/mainpassed against base1d626d02d95f: 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:
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
After — bar enabled
Settings: Chat toggle
Model: GPT-6 Astra. Harness: Codex in T3 Code.