feat(desktop): let users choose sidebar quota providers

G-
17h ago
+114-53

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.

Provider checkboxes in Settings → Usage

Claude Code, Codex and AntigravityAfter hiding Antigravity
Sidebar with all three providersSidebar with Claude Code and Codex
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 windowFrench, 540 px window
Customize with provider checkboxesPersonnaliser wraps below the switch at the minimum window width

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.

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.