Repository navigation
Conversation
Limits skipped Antigravity even when a Google login was present. Probe the daily Cloud Code quota summary and map Gemini windows onto the existing Limits cards. Co-authored-by: Cursor <cursoragent@cursor.com>
Limits stayed on the pre-login unsupported snapshot until the next health check, and an expired stored access token skipped refresh and failed the quota read. Re-probe on session start, and retry Cloud Code once after a 401. Co-authored-by: Cursor <cursoragent@cursor.com>
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a substantial Antigravity quota capability with OAuth token handling, external Cloud Code requests, provider lifecycle changes, and new user-facing limits. An unresolved medium-severity stale-session state concern further warrants human review. Not approved because:
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughAntigravity now reads Google quota data without launching the ACP agent, maps Gemini session and weekly limits, publishes them through provider snapshots, and clears them on sign-out. Mobile usage views use the “Antigravity” label, and documentation describes supported and excluded quota sources. ChangesAntigravity usage limits
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix · Severity of issue fixed: Low Sequence Diagram(s)sequenceDiagram
participant ProviderLifecycle
participant AntigravityProvider
participant UsageLimitsReader
participant CloudCode
ProviderLifecycle->>AntigravityProvider: initialize or start session
AntigravityProvider->>UsageLimitsReader: readAntigravityUsageLimits
UsageLimitsReader->>CloudCode: request quota summary
CloudCode-->>UsageLimitsReader: Gemini quota data
UsageLimitsReader-->>AntigravityProvider: usage windows
AntigravityProvider-->>ProviderLifecycle: snapshot with usage limits
Suggested reviewers: Merge Risk: ⚪ Minimal · up to Antigravity quota reporting is integrated with lifecycle cleanup and session-race protection, with no actionable merge risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
onSessionStarted waited on quota before writing, then applied the result whenever the current account was still signed in. Match the health-check revision guard so an older callback cannot overwrite a newer session. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@macroscope-app review |
|
Sorry, I'm unable to act on this request because you do not have permissions within this repository. |
|
Closing to open a new PR so Macroscope can run a first-pass review on the current HEAD. The branch is unchanged. |
What Changed
Usage → Limits now shows Antigravity Gemini session and weekly remaining quota from the Google login stored for that instance. Claude and GPT buckets from the same login are omitted. API-key and Vertex connections still report as unsupported.
Mobile
/usage-limitsand the pooled Limits screen get an Antigravity label so that snapshot is readable there too.Why
Antigravity could already be signed in, but Limits never asked it for quota, so the provider never appeared. That is #10919.
The health check cannot spawn ACP just to read remaining quota. This reads
acp_token.json, refreshes the Google token, and callsdaily-cloudcode-pa.googleapis.comretrieveUserQuotaSummary. Thecloudcode-pahost answers the same RPC withremainingFraction: 1on every bucket, so remaining has to come from the daily host.#10903 is a larger Antigravity quota probe with extra endpoints and UI sorting. This PR only fills the existing Limits cards.
Fixes #10919
UI Changes
Before, top of Limits. Codex, Claude, Cursor. No Antigravity.
Before, end of Limits. Cursor, then OpenCode.
After. OpenCode, then Antigravity with Gemini session and weekly remaining.
Checklist
Summary by CodeRabbit
New Features
Documentation