# Antigravity thinking metadata restart proof

Issue: [#41689](https://github.com/pingdotgg/t3code/issues/41689).

Base: [d49cf0bab5](https://github.com/pingdotgg/t3code/commit/d49cf0bab5b505ae3d56a76c88b9938dfff72d81).
Head: [8bc867dfaf](https://github.com/pingdotgg/t3code/commit/8bc867dfafca9c593ba05c11fcd0ce82ca8be459).

## Environment

Linux, real `agy` 1.5.15, Gemini API-key sign-in through the available test hub, synthetic nonempty key. Web client driven by T3 preview browser, Chromium, 1440x1000 CSS pixels, dark appearance, device pixel ratio 2. Each commit ran from its own checkout after `vp i`, with its own fresh data directory. No database was copied or edited. Replay was not used: this requires Antigravity-specific catalog behavior, which the scenario documentation excludes.

## Same reproduction on each side

1. Put `seed-settings.json` at `<fresh-home>/userdata/settings.json` before startup. The API key is deliberately synthetic.
2. Start `T3CODE_DEV_SEED=0 GOOGLE_GEMINI_BASE_URL=<test-hub> vp run dev --home-dir <fresh-home>`.
3. Pair the web browser. Open Settings > Providers, select Antigravity, then Connect. This performs the real sign-in/catalog probe. Wait for all eight Gemini models to appear. Save `<fresh-home>/caches/antigravity.json` as `probed.json`.
4. Add an empty synthetic project using `node apps/server/src/bin.ts project add --base-dir <fresh-home> --title 'Thinking metadata demo' <demo-project>`. The base project was added after restart; head was added before restart. This does not select or start an Antigravity model.
5. Stop the dev runner with Ctrl-C and restart the same command and data directory. Do not press Connect or refresh the catalog again.
6. Start the first provider session with `node apps/server/src/bin.ts thread start --base-dir <fresh-home> --provider antigravity --model gemini-4-neon --wait --title 'Thinking metadata restart proof' <demo-project> 'Reply with just the word ok.'`.
7. Both sessions initialized and then failed at the turn with a real quota 429. Save the cache again as `after-session.json`. The metadata update precedes the failed generation.
8. Open that thread directly in the browser. Collapse the sidebar and thread details panel to avoid exposing the environment name. Open the model picker with Neon selected, then click Gemini 4 Carbon. Do not send a Carbon turn. The picker stays open and displays Carbon's catalog capabilities.
9. Record the interaction in step 8 on both sides. Wait for stable rendering and take two identical screenshots at least 500ms apart. Inspect both final stills and sampled frames across both recordings before upload.
10. Run `python3 capture-catalog.py probed.json after-session.json > catalog.json` for each side. These are read-only extracts from real app output, not test expectations or mocked provider data.

## Observed

Both sign-in probes reported identical per-model metadata: Neon and Hydrogen low/medium/high/xhigh, Carbon/Argon and Flash 3.8/3.7/3.6 low/medium/high, Pro 3.1 low/high; all currentValue low.

After restart and one Neon session, base added xhigh to Carbon, Argon, and all Flash models. It removed the saved default from those models and Hydrogen. Head retained each model's original levels and currentValue. Carbon's picker visibly shows Extra and no selected default on base; head shows only Low/Medium/High and marks Low selected.

No model with zero thinking levels was offered by this hub, and GPT-OSS was not offered. That case remains unverified; models with fewer levels reproduce the cross-model contamination without a stand-in runtime or protocol.

Recordings show the post-restart model-picker interaction, not the server shutdown/startup. JSON extracts capture the catalog before and after the real restart/session sequence.
