Skip to content

Fix Antigravity quota summary lanes - #1726

Merged
steipete merged 3 commits into
steipete:mainfrom
Yuxin-Qiao:fix/antigravity-quota-groups
Jun 23, 2026
Merged

Fix Antigravity quota summary lanes#1726
steipete merged 3 commits into
steipete:mainfrom
Yuxin-Qiao:fix/antigravity-quota-groups

Conversation

@Yuxin-Qiao

@Yuxin-Qiao Yuxin-Qiao commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • rank Antigravity automatic menu bar usage from the rendered 5-hour and weekly quota lanes across both model groups
  • ignore non-renderable quota cadences when choosing the automatic highest-usage provider
  • keep Antigravity compact icon rendering aligned with the same most-constrained rendered lanes
  • shorten Antigravity quota lane titles to match the new grouped Google UI (Gemini 5-hour, Claude/GPT weekly, etc.)
  • update focused regression tests for the new quota grouping behavior

Verification

  • swift test --filter 'CodexbarTests|AntigravityQuotaSummaryTests|MenuBarMetricWindowResolverTests|UsageStoreHighestUsageTests'
  • swift test --skip-build --filter antigravity
  • make check
  • manually launched the patched app and verified the menu shows the new grouped lanes without raw localization keys

Screenshot Evidence

  • Source UI: Google Antigravity settings now groups quota into Gemini Models and Claude/GPT models, each with weekly and 5-hour limits.
  • Verified UI: CodexBar now renders Gemini 5-hour, Gemini weekly, Claude/GPT 5-hour, and Claude/GPT weekly with correct remaining percentages.
Google Antigravity grouped model quota settings CodexBar Antigravity grouped quota menu

Note: local screenshot files were used for verification but are not committed to the repo.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3692151c92

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return [windows.primary, windows.secondary]
.compactMap(\.self)
.max(by: { $0.usedPercent < $1.usedPercent })
return Self.mostConstrainedAntigravityQuotaSummaryWindow(snapshot: snapshot)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep highest-usage Antigravity ranking renderable

When menuBarShowsHighestUsage is enabled for the merged icon and a Claude/GPT quota-summary lane is the most constrained (for example Claude/GPT at 95% while Gemini is much lower), this selects Antigravity based on that non-Gemini lane. The render path in StatusItemController+Animation.applyIcon only receives the provider and then calls IconRemainingResolver.resolvedPercents, whose Antigravity compact-icon path still restricts quota-summary lanes to Gemini when any Gemini bucket is present, so the menu bar can show low Gemini bars instead of the 95% lane that caused the provider selection.

Useful? React with 👍 / 👎.

@clawsweeper

clawsweeper Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed June 23, 2026, 12:40 PM ET / 16:40 UTC.

Summary
The branch changes Antigravity quota summary labeling, compact icon lane selection, highest-usage provider ranking, and focused tests to use rendered Gemini and Claude/GPT 5-hour and weekly lanes.

Reproducibility: yes. Source inspection shows current main still restricts Antigravity compact quota-summary rendering to Gemini buckets while highest-usage ranking consumes that rendered resolver, and the PR tests cover Claude/GPT-constrained lanes.

Review metrics: 1 noteworthy metric.

  • Changed surface: 3 production files and 4 test files. The diff is concentrated on Antigravity quota parsing, icon lane resolution, highest-usage ranking, and regression coverage.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Next step before merge

  • No repair lane is needed because the PR already contains a focused implementation, tests, and sufficient real UI proof; the remaining action is normal maintainer review and merge handling.

Security
Cleared: The diff only changes Swift quota parsing/rendering logic and tests, with no dependency, CI, secret, or code-execution surface changes.

Review details

Best possible solution:

Land a focused Antigravity fix that keeps parsed menu labels, compact icon lanes, and merged highest-usage ranking on the same rendered 5-hour and weekly quota windows.

Do we have a high-confidence way to reproduce the issue?

Yes. Source inspection shows current main still restricts Antigravity compact quota-summary rendering to Gemini buckets while highest-usage ranking consumes that rendered resolver, and the PR tests cover Claude/GPT-constrained lanes.

Is this the best way to solve the issue?

Yes. The PR’s narrowest maintainable path is to make the Antigravity icon resolver and highest-usage selector share the same rendered quota-summary lanes while keeping label normalization in the Antigravity parser.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 929d55aaf1d7.

Label changes

Label changes:

  • add P2: This is a normal-priority Antigravity quota display and ranking bug fix with limited provider-specific blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes inspected screenshots showing the source grouped Google quota UI and the patched CodexBar menu rendering the grouped Antigravity lanes after the fix.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body includes inspected screenshots showing the source grouped Google quota UI and the patched CodexBar menu rendering the grouped Antigravity lanes after the fix.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body includes inspected screenshots showing the source grouped Google quota UI and the patched CodexBar menu rendering the grouped Antigravity lanes after the fix.

Label justifications:

  • P2: This is a normal-priority Antigravity quota display and ranking bug fix with limited provider-specific blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body includes inspected screenshots showing the source grouped Google quota UI and the patched CodexBar menu rendering the grouped Antigravity lanes after the fix.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes inspected screenshots showing the source grouped Google quota UI and the patched CodexBar menu rendering the grouped Antigravity lanes after the fix.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body includes inspected screenshots showing the source grouped Google quota UI and the patched CodexBar menu rendering the grouped Antigravity lanes after the fix.
Evidence reviewed

What I checked:

Likely related people:

  • steipete: Current-main blame for the central resolver files points to Peter Steinberger, and recent history includes Antigravity highest-usage and quota edge-handling fixes plus the latest PR head commit. (role: recent area contributor; confidence: high; commits: f380287041b8, 92da482c5533, 6462523d1212; files: Sources/CodexBar/IconRemainingResolver.swift, Sources/CodexBar/UsageStore+HighestUsage.swift, Sources/CodexBarCore/Providers/Antigravity/AntigravityStatusProbe.swift)
  • Yuxin-Qiao: Prior merged history includes Antigravity quota display-name work, and this branch includes the initial grouped quota lane commits. (role: recent area contributor; confidence: high; commits: 70f37afcb522, 3692151c92b5, 09ad648090d4; files: Sources/CodexBarCore/Providers/Antigravity/AntigravityStatusProbe.swift, Sources/CodexBar/IconRemainingResolver.swift, Tests/CodexBarTests/AntigravityQuotaSummaryTests.swift)
  • Zihao-Qi: Recent merged Antigravity icon-lane and quota-detection work touched the same icon resolver and Antigravity status-probe surfaces this PR changes. (role: adjacent owner; confidence: medium; commits: 7398a9f4914f, 984c2d1fa91b; files: Sources/CodexBar/IconRemainingResolver.swift, Sources/CodexBarCore/Providers/Antigravity/AntigravityStatusProbe.swift)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal priority bug or improvement with limited blast radius. labels Jun 23, 2026
@steipete
steipete merged commit 388ee14 into steipete:main Jun 23, 2026
10 checks passed
@Yuxin-Qiao
Yuxin-Qiao deleted the fix/antigravity-quota-groups branch June 25, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants