[Bug]: Antigravity provider exposes Unavailable models (Neon/Orchestrator), causing false quota crashes #39438
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Connect an Antigravity provider account whose subscription tier does not include Gemini 4 Neon / Orchestrator entitlements (for example, standard Google One subscription where native Antigravity IDE shows
Gemini 4 Neon,Hydrogen,Argon,Carbongrayed out and labeledUnavailable ⓘ, while 100% weekly quota remains for supported models like Gemini 3.8 Flash High). - Open T3 Code (
0.1.11-nightly.20261119.4954). - In the model picker, observe that
Gemini 4 NeonandOrchestrator (Neon)are surfaced as selectable active models. In some cases,gemini-4-neonis even selected by default ("isDefault": true). - Start a thread with
gemini-4-neonorgemini-pro-orchestrator-neonand run a multi-step task. - After 1–2 initial tool calls, observe the turn crashing with an Antigravity quota / entitlement error.
Expected behavior#
T3 Code's model discovery should check model availability / tier entitlement flags during the ACP handshake. Models marked Unavailable in native Antigravity should either be hidden from the model picker or marked as disabled ("Unavailable - Plan upgrade required"), and should never be assigned as isDefault.
Actual behavior#
T3 Code populates gemini-4-neon and gemini-pro-orchestrator-neon in the model picker as fully available (disabled: undefined in ~/.t3/caches/<instance>.json).
When running a thread with one of these models:
- The session executes 1–2 commands, then Google's backend rejects the request:
⚠ Individual quota reached. Please upgrade your subscription to increase your limits. Resets in 121h11m48s. - Antigravity terminates the turn with an error (
terminal-failure: Antigravity stopped this turn because of an error.). - T3 Code interprets this as account-wide weekly quota exhaustion and locks the thread with a 5-day / 120h countdown banner, creating a false impression that the account's entire weekly quota was wiped out, even though native Antigravity confirms general weekly limits are intact at 100%.
Impact#
Annoying bug or degraded experience
Version or commit#
0.1.11-nightly.20261119.4954
Environment#
Windows 10/11 x64, Antigravity CLI 1.5.12 / 1.5.13 (oauth-personal)
Logs or stack traces#
[turn:1] Executing tool calls: workspace-preparation, command_execution...
[turn:1:assistant:0] ⚠ Individual quota reached. Please upgrade your subscription to increase your limits. Resets in 121h11m48s.
[turn:1:terminal-failure] Antigravity stopped this turn because of an error.tanstack-source added labelsbug
Sign in to join this conversation.
Additional diagnosis from a user hitting the same thing:
~/.t3/caches/antigravity.jsonlists all fourgemini-4-neon-*variants with no availability flag at all (nodisabled, no entitlement data anywhere in the cache), default stillgemini-3.8-flash-high.I dug into the code, and I believe the proposed fix ("check model availability / tier entitlement flags during the ACP handshake") is not implementable with the current protocol: the ACP session setup carries no entitlement information at all. In
packages/effect-acp/src/_generated/schema-v1.gen.ts, a session config option value is only:There is no
disabled/unavailable/entitlementfield anywhere in the v1 schema.buildAntigravityModelsFromSession(apps/server/src/provider/AntigravityProvider.ts) maps every reported option straight into the picker, and the only availability check that exists (applyAntigravityAcpModelSelectioninapps/server/src/provider/acp/AntigravityAcpSupport.ts) validates the resolved model against the CLI's own option list — which is exactly the list that wrongly contains Neon in the first place.So the flags the native Antigravity IDE uses to gray out models ("Unavailable ⓘ") come from Google's backend, not through ACP. Two possible directions:
AntigravityTurnOutcomealready classifiesQUOTA_EXHAUSTED; T3 could additionally match the "Individual quota reached / upgrade your subscription" entitlement class and mark that model slug unavailable in provider state (hidden from the picker, neverisDefault). Care needed to distinguish an entitlement rejection from a transient weekly-quota exhaustion on an entitled model, so a model that simply ran out of its weekly quota does not get hidden permanently. NoteServerProviderModel(packages/contracts/src/server.ts) currently has nodisabledfield, so this touches contracts + the picker UI.Happy to test a nightly that moves on this.
Comment written with AI assistance, posted by the account owner.