Skip to content

Show short Antigravity pool labels in status bar - #31007

Merged
AmethystLiang merged 3 commits into
mainfrom
short-pool-labels-pr1
Oct 20, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
short-pool-labels-pr1

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​492 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​490
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​220 $\color{#cf222e}{\Huge{\mathbf{−}}}$​24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​196

Problem

Antigravity pool names were long in the status bar, making multiple model groups hard to scan. Reset countdowns also did not keep updating after quota data was fetched.

Solution

This fixes the status-bar presentation by preserving each pool's group and window identity, then showing short labels such as Gemini 5h and Claude/GPT wk. Urgent pools now show a live reset countdown while the detailed panel keeps full names.

ELI5

When several usage limits exist, the bar now uses short, clear names and keeps the time-to-reset current.

What Changed

  • Preserve Antigravity group and window names through rate-limit summaries.
  • Group verbose status-bar pools by model family and shorten their labels.
  • Show reset countdowns for urgent pools and update them without another quota fetch.
  • Keep compatibility with older hosts that do not provide structured pool fields.

Why

Short labels fit the status bar without losing which pool they describe. Keeping structured fields avoids guessing by splitting display text, while retaining full names where there is room.

Linked Issue

Fixes no linked issue.

Visual Proof

TODO: Attach before/after status-bar proof.

Testing

  • Added and updated unit tests for Antigravity parsing, pool labels, grouped status-bar rendering, and countdown updates.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No security, cross-platform, SSH, mobile, backwards-compatibility, or performance concerns identified. Older hosts continue to use existing bucket names when structured pool fields are unavailable.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

AmethystLiang and others added 3 commits October 19, 2026 17:25
Antigravity pools rendered their full "<group> · <agy window name>" in the
status bar. The host now publishes structured group/windowName fields on each
bucket, and the renderer labels pools as short group + window length
("Gemini 5h", "Claude/GPT wk"), with a reset countdown once a pool is urgent.
Old hosts without the fields keep today's full names; the click panel and
tooltips are unchanged.

Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 26920f54-e1f9-45f0-9602-70fa12622956
📥 Commits

Reviewing files that changed from the base of the PR and between d6707ff and cacda0d.

📒 Files selected for processing: 12
  • src/main/rate-limits/antigravity-usage-fetcher.test.ts
  • src/main/rate-limits/antigravity-usage-response.test.ts
  • src/main/rate-limits/antigravity-usage-response.ts
  • src/main/rate-limits/rate-limit-bucket-summary.ts
  • src/renderer/src/components/status-bar/StatusBarProviderSegment.tsx
  • src/renderer/src/components/status-bar/UsageRosterPanel.test.tsx
  • src/renderer/src/components/status-bar/status-bar-antigravity-segment.test.tsx
  • src/renderer/src/components/status-bar/status-bar-pool-countdown.test.tsx
  • src/renderer/src/components/status-bar/usage-grouped-pools.tsx
  • src/renderer/src/components/status-bar/usage-pool-label.test.ts
  • src/renderer/src/components/status-bar/usage-pool-label.ts
  • src/shared/rate-limit-types.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

Antigravity bucket parsing now retains model group and provider-defined window labels. The status bar formats grouped pool and window labels, sorts grouped windows for display, and shows reset countdowns for urgent pools when applicable. ProviderSegment renders grouped pools in verbose mode when all sections are grouped pools. Tests cover parsing, label formatting, rendering modes, and countdown behavior.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to cacda

No merge-blocking issue was identified; grouped and legacy pool labels remain visible in the relevant display modes, and visible urgent countdowns continue updating.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the problem, solution, user-facing behavior, implementation, testing scope, and compatibility considerations. However, it explicitly provides no linked issue and leaves the re… Link the actual issue that this PR fixes. Add before-and-after screenshots or a video, or write N/A with a brief reason only if there is truly no visual or interaction change. Update the checklist after completing these items.
Docstring Coverage Warning Docstring coverage is 36.84% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 12 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main user-facing change: shorter Antigravity pool labels in the status bar.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, solution, user-facing behavior, implementation, testing scope, and compatibility considerations. However, it explicitly provides no linked issue and leaves the required visual proof as TODO for a UI change.

Resolution

Link the actual issue that this PR fixes. Add before-and-after screenshots or a video, or write N/A with a brief reason only if there is truly no visual or interaction change. Update the checklist after completing these items.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant