You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(desktop): let users choose sidebar quota providers - #10186
Claude Code and Codex used to take both spots in the sidebar even when Antigravity also reported a quota. The sidebar now shows every provider with a readable subscription quota. In Settings → Usage → Customize, users can hide individual providers and keep that choice across restarts.
Claude Code, Codex and Antigravity
After hiding Antigravity
English and French menu layouts
The button reuses the existing Lingui message for “Customize”. These crops show the Usage header in a browser with the desktop styles and locale catalogs.
English, 1180 px window
French, 540 px window
How I tested it
Opened the macOS desktop app against a local host with active Claude Code, Codex and Antigravity subscriptions. Clicked the Antigravity ring to open its usage settings, hid it, reloaded the renderer and confirmed that two rings remained. Re-enabled it and confirmed that all three returned.
Reproduced the clipped French button at 540 px in an isolated browser render of the Usage header. After the fix, opened the menu and toggled each provider. With a stub host, confirmed the rail quota query became inactive after hiding all providers and resumed when one was shown.
Ran the sidebar and Usage-page provider selection tests. All 11 passed, including a zero-percent Antigravity quota.
Ran bun run lint, bun run typecheck and bun run check:i18n.
The full local monorepo run passed 25 of 32 test tasks. Failures included recurrence time-zone handling in shared, process snapshots in the port scanner, and host-service timeouts.
Checklist
Conventional commit title
Lint and typecheck pass
Maintainers can edit the fork branch
Contributor License Agreement check passed
Summary by cubic
Lets users choose which quota providers appear in the sidebar usage rings. Previously the rail showed at most two providers even when others reported a usable quota; it now shows every provider with a readable subscription quota, and users can hide individual providers from Settings → Usage → Customize. The choice persists across restarts, and quota polling pauses when every provider is hidden.
Removed the two-provider cap on the rail; the fixed agent order is now shared as QUOTA_AGENT_ORDER.
Added hiddenRailUsageProviders to the persisted settings store with a toggleRailUsageProvider action.
Provider labels now come from the built-in agent catalog.
Updated the rail and usage-page selector tests to cover provider hiding.
Written for commit 17c711e. Summary will update on new commits.
Summary by CodeRabbit
New Features
Customize which providers appear in the sidebar’s usage rings with per-provider controls in Usage settings.
Usage rings can display all available providers in a consistent order, rather than limiting the display to two.
Improvements
Sidebar usage rings appear only when enabled and at least one eligible provider is visible.
Hiding a provider removes only its ring; other visible providers remain displayed.
Provider customization is unavailable when sidebar usage rings are turned off.
No actionable comments were generated in the recent review.
Walkthrough
Usage settings now let users choose which providers appear in navigation rail quota rings. The provider order is shared across usage views, and hidden-provider selections are stored in settings. The rail no longer caps results at two providers and skips quota requests when rings are disabled or all ordered providers are hidden.
Changes: Rail quota provider customization
Layer / File(s)
Summary
Shared provider order and settings state apps/desktop/src/renderer/utils/usage/quotaAgentLabels/*, apps/desktop/src/renderer/stores/settings.ts, apps/desktop/src/renderer/routes/_authenticated/settings/usage/components/UsageView/utils/visibleQuotaAgents/visibleQuotaAgents.ts
The shared provider order replaces local order lists. Settings add an empty-by-default hidden-provider list and a toggle action. visibleQuotaAgents uses the shared order.
Customize providers in usage settings apps/desktop/src/renderer/routes/_authenticated/settings/usage/components/UsageRingsToggle/UsageRingsToggle.tsx
A Customize dropdown lists providers in shared order. Its checkboxes reflect hidden-provider state and toggle individual providers. The dropdown is disabled when quota rings are off.
Select and render rail providers apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/NavigationRail/components/RailUsage/*
The selector skips hidden providers and no longer caps results at two. Tests cover the returned order and hidden-provider filtering. RailUsage skips quota requests when rings are disabled or all ordered providers are hidden, filters hidden providers, and keys rings by agent.
sequenceDiagram
actor User
participant UsageRingsToggle
participant SettingsStore
participant RailUsage
participant selectRailUsage
User->>UsageRingsToggle: Changes a provider checkbox
UsageRingsToggle->>SettingsStore: Calls toggleRailUsageProvider
RailUsage->>selectRailUsage: Passes accounts and hidden providers
Loading
Possibly related PRs
ParadevAI/Paradev#9942: Adds navigation rail quota rings and the two-provider cap that this change replaces.
Suggested reviewers:avipeltz
Merge Risk: Minimal · up to 17c71
This change lets users pick which providers appear as sidebar quota rings, and the choice persists. The changes are limited to the desktop UI. No concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(desktop): let users choose sidebar quota providers" matches the main change. The diff adds a Customize dropdown in Settings → Usage that hides or shows quota providers in the sidebar r…
Description check
The description follows the template. It has a "What & why" section that explains the two-provider cap and the new per-provider hide option, with a link to the change. It has a "How I tested it" secti…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "feat(desktop): let users choose sidebar quota providers" matches the main change. The diff adds a Customize dropdown in Settings → Usage that hides or shows quota providers in the sidebar rings. It also removes the two-provider cap on the rail, which the title does not mention but which is a secondary point. The title is short, follows conventional commit format, and names the primary user-facing change.
Full details: Description check
Explanation
The description follows the template. It has a "What & why" section that explains the two-provider cap and the new per-provider hide option, with a link to the change. It has a "How I tested it" section with specific steps, screenshots, and test results. The checklist is present and marked. The template asks for an issue link when one exists, and the description does not include one. It also omits the CONTRIBUTING.md screenshot-capture reference, which is optional guidance.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
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
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 & why
Claude Code and Codex used to take both spots in the sidebar even when Antigravity also reported a quota. The sidebar now shows every provider with a readable subscription quota. In Settings → Usage → Customize, users can hide individual providers and keep that choice across restarts.
English and French menu layouts
The button reuses the existing Lingui message for “Customize”. These crops show the Usage header in a browser with the desktop styles and locale catalogs.
How I tested it
bun run lint,bun run typecheckandbun run check:i18n.Checklist
Summary by cubic
Lets users choose which quota providers appear in the sidebar usage rings. Previously the rail showed at most two providers even when others reported a usable quota; it now shows every provider with a readable subscription quota, and users can hide individual providers from Settings → Usage → Customize. The choice persists across restarts, and quota polling pauses when every provider is hidden.
QUOTA_AGENT_ORDER.hiddenRailUsageProvidersto the persisted settings store with atoggleRailUsageProvideraction.Written for commit 17c711e. Summary will update on new commits.
Summary by CodeRabbit