Repository navigation
Conversation
… to restore Gemini quota buckets - Upgrade DEFAULT_CLOUD_CODE_IDE_VERSION and fallback User-Agent from 1.20.5 to 2.23.1 to satisfy upstream CloudCode PA version gating (>=2.10.0) which omitted Gemini Models quota buckets - Add /Applications/Antigravity.app to macOS default app path search candidates - Add antigravity and Antigravity directories to Windows default app path search candidates - Fixes jlcodes99#2832
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Fixes #2832
Problem Description
Recently, Antigravity accounts have been displaying identical percentages and reset countdowns for both the Five-Hour Limit and the Weekly Limit (e.g., both showing 92% with the exact same reset timestamp). This issue simultaneously affected current releases (v1.3.70) as well as earlier, untouched installations (e.g., v1.3.68, v1.3.66).
Root Cause Analysis
Through traffic inspection with the official running Language Server and empirical version-gradient API testing against Google Cloud Code PA:
Upstream Version Gating:
/v1internal:retrieveUserQuotaSummaryrecently introduced server-side version filtering based on theUser-Agentheader (antigravity/<version>).< 2.10.0(such as the legacy hardcoded fallback1.20.5), Google's backend silently strips theGemini Modelsgroup entirely, only returningClaude and GPT models.>= 2.10.0(e.g., current official version2.23.1), the backend returns bothGemini Models(gemini-weekly&gemini-5h) andClaude and GPT models.Detection Failure & Fallback to
1.20.5:DEFAULT_CLOUD_CODE_IDE_VERSION = "1.20.5"whenever local IDE version detection was unavailable./Applications/Antigravity IDE.app, whereas the official application bundle is/Applications/Antigravity.app. Additionally, cross-platform settings synchronization (e.g., syncing a Windows path to macOS) caused local path resolution to fail, causing Cockpit Tools to fall back to1.20.5.1.20.5fallback were impacted simultaneously.Presentation Fallback Duplication:
gemini-weeklyandgemini-5hbuckets were missing from the quota summary, the frontend presentation logic fell back to standard model pool entries (gemini-2.5-flashandgemini-3.5-flash-extra-low).fetchAvailableModels, standard Gemini models share identical quota and reset countdowns, causing the UI to render two rows with the exact same numbers.Proposed Changes
crates/.../quota.rs&src-tauri/.../quota.rs):DEFAULT_CLOUD_CODE_IDE_VERSIONand defaultUser-Agentconstants from1.20.5to2.23.1, satisfying upstream CloudCode PA version gating even when running standalone or when path resolution fails.crates/.../wakeup_gateway.rs&src-tauri/.../wakeup_gateway.rs):/Applications/Antigravity.appwhile retaining backward compatibility for/Applications/Antigravity IDE.app.LOCALAPPDATA/Programs/antigravityandAntigravitydirectory candidates.Verification
antigravity/2.23.1retrieves bothGemini Models(gemini-weekly&gemini-5h) andClaude and GPT modelsas expected.cargo test -p cockpit-core -- --test-threads=1; all 163 tests passed cleanly.Before:

After:

Build and Test on MacOS 27.0.1 ARM Platform.