Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity FetchConfig timeout in one session removes Gemini 4 Neon from the shared model picker #47056

Openrawhamusic-art(GitHub profile, opens in a new tab) opened this issue 0 comments

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

Summary

A transient Antigravity FetchConfig timeout in one new session can cause T3 Code to replace the provider instance's shared model catalog with a smaller fallback list. Gemini 4 Neon then becomes unavailable in other threads using that instance.

In one day's logs, 159 of 160 Antigravity sessions advertised 20 models, with gemini-4-neon-high selected. The only session that logged a FetchConfig timeout advertised 10 models, omitted Neon, and selected Hydrogen High.

Steps to reproduce

  1. Sign in to the T3-managed Antigravity provider using oauth-personal on an account routed to AICode. Confirm that the model picker includes Gemini 4 Neon.
  2. Start a new Antigravity session (for example, a new thread or a delegated task) while the runtime's AICode FetchConfig request times out. This depends on a transient upstream timeout; I don't have a deterministic repro.
  3. When session/new returns the smaller CCPA fallback list, check the model picker in another thread using the same Antigravity provider instance.

Expected behavior

The fallback list may apply to the affected session, but it should not remove previously available models or change the default model for other threads using the same provider instance.

Actual behavior

The fallback list replaces the shared catalog and default model. Gemini 4 Neon disappears from the picker or is shown as unavailable in existing threads, even though only one session reported the smaller list.

Suspected cause

In apps/server/src/provider/AntigravityProvider.ts:

  • onSessionStarted (lines 413–479) treats any non-resumed session as authoritative (session?.resumed !== true). On that path, it uses the session's default and replaces draft.models with the models built from that session's config. A routine session can therefore replace the shared catalog with a fallback list.
  • onConfigOptionsUpdated (lines 481–498) also replaces the model list when it differs, including updates that do not come from a catalog probe. This appears to be another path that could produce the same outcome; the logs above are from session startup.

One possible fix is to preserve the last known good catalog and default when a routine session reports an unexpectedly smaller list. Model removals should still be possible after a successful catalog refresh that confirms the change, so genuinely retired models do not stay in the picker.

Impact

Minor bug or occasional failure

Version or commit

0.1.13

Environment

Windows 11 x64 (10.0.26300), T3 Code Desktop 0.1.13, T3-managed Antigravity ACP runtime 1.5.13, oauth-personal

Logs or stack traces

Affected session (Dec 1):

I1201 22:46:35.158798      82 model_configs.go:230] Auth mode is unspecified, skipping fetchAvailableModels and returning empty response
W1201 22:46:37.034586     199 code_assist_client.go:509] CCPA routed this account to AICode, but AICode FetchConfig failed, serving CCPA's flags: failed to make AI Code FetchConfig request: Get "https://aicode.googleapis.com/v1alpha:fetchConfig": context deadline exceeded
I1201 22:46:37.206302     301 server.go:213] ACP Request received: session/new
I1201 22:46:37.750681     301 config_options.go:217] Setting default model override: Gemini 4 Hydrogen (High)
I1201 22:46:37.751187     301 session_handlers.go:151] Advertising available models to client: current=gemini-4-hydrogen-high, count=10

Healthy sessions before and after the affected session logged:

Advertising available models to client: current=gemini-4-neon-high, count=20

Workaround

Once FetchConfig is responding again, use Refresh in the Antigravity provider settings to reload the full model list. Starting a new session that successfully fetches the full catalog can also restore it.

  1. tanstack-source added labelsbug

Sign in to join this conversation.