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>
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>
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds an automatic Antigravity quota integration that reads and refreshes Google OAuth credentials, calls Cloud Code, and changes provider snapshot behavior. Its new production logic and authentication-sensitive data flow require human review. 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 (10)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughAntigravity now reads Google quota data without launching ACP, converts Gemini session and weekly quotas into usage limits, publishes them through provider lifecycle updates, labels them in mobile views, and documents supported and excluded connection types. ChangesAntigravity usage limits
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change adds Antigravity quota reporting and labels with no supported actionable defect remaining. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 29.41% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 17 functions across 9 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work. Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look. |
|
Could we get this merged into main as #10409 was merged too @juliusmarminge ? |
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