feat(web): optional toggle to show rate limits in sidebar - #9649
Open
imabdulazeez wants to merge 4 commits into
Open
feat(web): optional toggle to show rate limits in sidebar#9649imabdulazeez wants to merge 4 commits into
imabdulazeez wants to merge 4 commits into
Conversation
Contributor
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a new opt-in sidebar quota experience, including provider matching, limit-window rendering, persistence, and interactive details through a substantial new component. Existing behavior remains unchanged by default, but the new product default and lack of feature-specific tests warrant human review. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Adds a sidebar indicator showing the active thread's provider usage limits with a hover panel for all windows, plus a settings toggle to hide it.
imabdulazeez
force-pushed
the
feat/sidebar-provider-usage-limits
branch
from
September 4, 2026 12:06
b0247e0 to
f18044d
Compare
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.
What Changed
Adds an optional usage-limit indicator above the sidebar footer controls.
For the provider selected in the current chat, the compact indicator shows the remaining quota in its shortest reported window, such as Claude's five-hour limit. Hovering or focusing it expands an in-sidebar panel showing every reported limit window and reset countdown for that provider.
The indicator is disabled by default. It can be enabled with the Show in sidebar toggle at the top of the Usage → Limits view.
This is a web/desktop UI addition built on the provider usage-limit data introduced in #9507. It does not add another provider probe, polling loop, or usage-limit backend.
Why
The Limits view provides the complete account overview, but checking it requires leaving the active chat. The shortest-duration window is usually the limit most likely to interrupt the current task, so showing that value in the sidebar makes it available at a glance.
Keeping the feature opt-in avoids adding permanent sidebar noise for users who do not need it. Expanding on hover or keyboard focus provides the remaining windows without duplicating the full Limits page.
This follows up on earlier sidebar proposals such as #4611, #6264, and #8138 while reusing the usage-limit architecture already merged through #9507.
UI Changes
Before: provider limits are available only from Usage → Limits.
After: when Show in sidebar is enabled, the active provider's shortest usage window appears above the sidebar footer controls. Hovering or focusing it shows all reported windows inside the sidebar boundary.
Checklist
Note
Add optional sidebar rate-limit indicator with
sidebarUsageLimitsEnabledtogglesidebarUsageLimitsEnabledclient setting (defaultfalse) so users can opt into showing usage limits in the sidebar footerSidebarUsageLimitscomponent in SidebarChrome.tsxMacroscope summarized f18044d.