t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Antigravity provider exposes Unavailable models (Neon/Orchestrator), causing false quota crashes

Open HITECHDEM opened this issue 1 week ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. 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, Carbon grayed out and labeled Unavailable ⓘ, while 100% weekly quota remains for supported models like Gemini 3.8 Flash High).
  2. Open T3 Code (0.1.11-nightly.20261119.4954).
  3. In the model picker, observe that Gemini 4 Neon and Orchestrator (Neon) are surfaced as selectable active models. In some cases, gemini-4-neon is even selected by default ("isDefault": true).
  4. Start a thread with gemini-4-neon or gemini-pro-orchestrator-neon and run a multi-step task.
  5. 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.

HITECHDEM avatar Nov 19 '26 23:11 HITECHDEM

Additional diagnosis from a user hitting the same thing: ~/.t3/caches/antigravity.json lists all four gemini-4-neon-* variants with no availability flag at all (no disabled, no entitlement data anywhere in the cache), default still gemini-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:

readonly value: SessionConfigValueId;
readonly name: string;
readonly description?: string | null;

There is no disabled / unavailable / entitlement field 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 (applyAntigravityAcpModelSelection in apps/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:

  1. Upstream: the Antigravity CLI would need to expose per-model entitlement/availability (a schema change; realistically requires Google to ship it in the managed runtime).
  2. T3-side mitigation: AntigravityTurnOutcome already classifies QUOTA_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, never isDefault). 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. Note ServerProviderModel (packages/contracts/src/server.ts) currently has no disabled field, 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.

kuelshammer avatar Nov 21 '26 09:11 kuelshammer