Repository navigation
fix(server): Antigravity models keep their own thinking levels after a restart - #41699
Conversation
…restart Reproduces #41689: after a restart the provider has observed only the session's model, so every other model inherits that model's thinking levels and the registry merge overwrites the probed ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a restart An Antigravity model the server had not seen selected was given the active model's thinking levels, and the registry merge let that copy overwrite the levels the model reported when the catalog was probed. An unobserved model now reports no levels, so the cached ones stay. Fixes #41689 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a server restart, the first Antigravity session rebuilt the model catalog and gave every model not yet selected in that process the active model's thinking-level options, overwriting each model's own saved levels and defaults in the provider cache and model picker. Now a model the server has not observed reports no thinking levels of its own, so the registry keeps the levels it reported when the catalog was probed.
Fixes #41689
Reproduction on main
Commit origin/main 9f11faf, Linux VM, agy 1.5.15. 1) Started
T3CODE_DEV_SEED=0 GOOGLE_GEMINI_BASE_URL=<hub> vp run dev --home-dir <fresh dir>with a settings.json enabling the antigravity instance (authMethod gemini-api-key, dummy key). 2) In the web app, Settings > Providers > Antigravity > Connect, which runs the sign-in catalog probe. caches/antigravity.json then held each model's own levels: gemini-4-neon and gemini-4-hydrogen low/medium/high/xhigh; gemini-4-carbon, gemini-4-argon and gemini-3.8/3.7/3.6-flash low/medium/high; gemini-3.1-pro low/high. Each had currentValue low. 3) Stopped and restarted the dev server. The cache was unchanged. 4) Rant3 thread start --provider antigravity --model gemini-4-neon --wait . "Reply with just the word ok.". The session started, then the hub refused the turn with a quota 429, which does not affect this bug. 5) The cache now listed gemini-4-carbon, gemini-4-argon, gemini-4-hydrogen and gemini-3.8/3.7/3.6-flash with Neon's low/medium/high/xhigh and currentValue null. Only gemini-3.1-pro, which was observed in that session's process, kept low/high. GPT-OSS is not offered through the hub, so models with fewer levels stood in for it. Regression test: branch factory/repro-41689, test "keeps each model's probed thinking levels after a restart observes only the active model" in apps/server/src/provider/AntigravityProvider.test.ts. It fails on main: carbon receives ['low','medium','high','xhigh'] instead of ['low','medium','high'].Evidence
Linux web app, Chromium at 1440×1000 CSS pixels, dark appearance; real agy 1.5.15 in Gemini API-key mode through the test hub, separate fresh databases. On both commits: Connect to probe the catalog → restart the server without re-probing → start the first session on Neon → open the model picker and select Carbon without sending another turn. Both Neon turns received quota 429 after initialization.
Base overwrote Carbon, Argon, and all three Flash models with Neon's four levels and removed saved defaults from unobserved models. Head preserved every offered model's original levels and defaults. Recordings show the post-restart picker interaction; before catalog and after catalog contain real probe and post-session metadata.
Reproduction steps · Synthetic seed · Capture script · Redacted runtime logs
Not shown:
Tests
vp test run src/provider/AntigravityProvider.test.ts -t "restart observes only"on the base commit without the fix: fails as reported (carbon gets low/medium/high/xhigh)vp test run src/provider/AntigravityProvider.test.ts src/provider/ProviderRegistry.test.ts(apps/server, after merging main): 2 files, 123 tests passedvp test run src/provider/AntigravityProvider.test.ts src/provider/Drivers/AntigravityDriver.test.ts src/provider/ProviderRegistry.test.ts src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts(apps/server, before the merge): 4 files, 167 tests passedeffect-tsgo tsrs --noEmit(apps/server, after merging main): exits 0vp run check:changed: format, lint, knip, graphql and tests passNot in this change
Who did the work
Run by the t3code factory in T3 Code.