You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Antigravity cloud endpoint omits Gemini Models quota pool due to outdated User-Agent (2.1.1) #133
Run ./providers/get-antigravity-usage without a running Antigravity IDE local language server (or with ANTIGRAVITY_NO_LOCAL_RPC=1), so the adapter queries daily-cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummary directly.
Inspect the returned accounts[0].windows array.
Expected behavior
v1internal:retrieveUserQuotaSummary returns both the Gemini Models (5h and Weekly) and Claude & OpenAI Models (5h and Weekly) quota pools.
Actual behavior
Only Claude & OpenAI Models (5h and Weekly) are returned. The Gemini Models quota pool is completely missing from the cloud response.
Local checks
Testing v1internal:retrieveUserQuotaSummary on daily-cloudcode-pa.googleapis.com with different User-Agent and X-Client-Version headers shows that the backend gates the Gemini Models group specifically on the User-Agent version (>= 2.6.0), not on X-Client-Version:
# Isolating User-Agent vs X-Client-Version:
UA=antigravity/ide/2.1.1 darwin/arm64, X-Client-Version=2.1.1 -> ["Claude and GPT models"]
UA=antigravity/ide/2.1.1 darwin/arm64, X-Client-Version=3.0.0 -> ["Claude and GPT models"]
UA=antigravity/ide/3.0.0 darwin/arm64, X-Client-Version=2.1.1 -> ["Gemini Models","Claude and GPT models"]
# Version threshold check:
UA=antigravity/ide/2.1.1 darwin/arm64 -> ["Claude and GPT models"]
UA=antigravity/ide/2.5.0 darwin/arm64 -> ["Claude and GPT models"]
UA=antigravity/ide/2.6.0 darwin/arm64 -> ["Gemini Models","Claude and GPT models"]
Root cause & suggested fix
providers/native/antigravity.bash defaults ANTIGRAVITY_USER_AGENT to antigravity/ide/2.1.1 darwin/arm64.
providers/get-provider-usage hard-codes -H "X-Client-Version: 2.1.1" in antigravity_fetch_account.
Bumping the default client version from 2.1.1 to at least 2.6.0 (e.g. via an overridable ANTIGRAVITY_CLIENT_VERSION default used by both User-Agent and X-Client-Version) immediately restores the Gemini Models (5h) and Gemini Models (Weekly) windows from the cloud endpoint — even without a running IDE language server.
Thanks for the report, @SlobCoder. The matrix isolating User-Agent vs X-Client-Version and the version threshold check was excellent — it made it very clear that the Gemini Models pool gate was on the client User-Agent/version.
What was happening
The Antigravity cloud path defaulted to antigravity/ide/2.1.1 darwin/arm64 as the User-Agent and sent a hardcoded X-Client-Version: 2.1.1. Because of that, daily-cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummary returned only the Claude/OpenAI pool; the Gemini 5h/Weekly pools were missing.
When PR #137 is merged and you update, could you confirm whether the Gemini Models (5h) and Gemini Models (Weekly) pools show up again in your cloud/fallback environment? If any pool is still missing, please let me know with the scenario (no tokens/sessions) and I’ll keep digging. Thanks again!
Activity
docs(antigravity): document ACP discovery and client version override
bernardopg commentedon Nov 22, 2026
Thanks for the report, @SlobCoder. The matrix isolating
User-AgentvsX-Client-Versionand the version threshold check was excellent — it made it very clear that the Gemini Models pool gate was on the clientUser-Agent/version.What was happening
The Antigravity cloud path defaulted to
antigravity/ide/2.1.1 darwin/arm64as the User-Agent and sent a hardcodedX-Client-Version: 2.1.1. Because of that,daily-cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummaryreturned only the Claude/OpenAI pool; the Gemini 5h/Weekly pools were missing.Fix
I opened PR #137 with the fix:
ANTIGRAVITY_CLIENT_VERSIONnow defaults to2.6.0(the lowest version you validated as sufficient).antigravity/ide/${ANTIGRAVITY_CLIENT_VERSION} darwin/arm64.X-Client-Versionuses the same version.ANTIGRAVITY_CLIENT_VERSIONremains configurable for forward compatibility.I also updated
docs/configuration.mdanddocs/providers.mdto document ACP discovery andANTIGRAVITY_CLIENT_VERSION.Validation
I ran locally:
bash tests/test-antigravity-live.shbash -n providers/native/antigravity.bash providers/get-provider-usageshellcheck -S warning providers/native/antigravity.bashWhen PR #137 is merged and you update, could you confirm whether the Gemini Models (5h) and Gemini Models (Weekly) pools show up again in your cloud/fallback environment? If any pool is still missing, please let me know with the scenario (no tokens/sessions) and I’ll keep digging. Thanks again!