# Antigravity startup cache reproduction

Environment: Linux, Google agy 1.5.20 on PATH; no managed tools directory. Web client, Chromium, 1280x800 CSS viewport, light theme. Fresh database for each commit, T3CODE_DEV_SEED=0. Gemini API-key sign-in through the configured compatible endpoint; no model turn is needed. The environment label is set to Evidence environment for privacy.

Base: 8b609772ef9a52822b7baed2cb32e20e848d9fd4
Head: 9b3e0236b9c440006497d95db4791238ec48abca

## Same actions on both commits

1. Install dependencies with `vp i`. Start `vp run dev` with T3CODE_DEV_SEED=0, T3CODE_ENVIRONMENT_LABEL=Evidence environment and GOOGLE_GEMINI_BASE_URL set to the available compatible endpoint. Pair the browser with the startup URL.
2. Open `/settings/providers`. Add provider; select Antigravity; Next; keep the default identity; Next; choose Gemini API key; enter a nonempty test key; Add instance. Leave Binary path automatic. Do not install a managed runtime.
3. Click Refresh provider status. Wait for the cache to contain version 1.5.20, supported compatibility, ready/authenticated, 8 models and 11 slash commands.
4. Record the web UI. Click Refresh provider status again; preserve the cache as `before-restart.json`. Stop the retained dev-runner session with Ctrl-C, then restart the same command and environment against the same data directory. Wait at least 15 seconds after Listening, without refreshing or starting an Antigravity session.
5. Preserve `after-restart.json`. Select Antigravity using `button[aria-label="Select Antigravity"]` for the final screenshot. Capture two stills 500ms apart and check pixel equality.

The 65-second video excerpts start just before the final explicit refresh and include the disconnection/reconnection across restart. The provider list shows version disappearing only on base. Final screenshots select Antigravity on both sides. The JSON files are actual saved provider caches, with no invented provider responses. runtime-transcript.json selects the affected fields from those files.

## Cache capture

From the checkout, run the accompanying capture-cache.py with the dev base directory and a new output filename:

```sh
python3 capture-cache.py .t3 before-restart.json
# Stop/restart the retained dev session, wait for startup check.
python3 capture-cache.py .t3 after-restart.json
```

The script checks that no managed tools directory exists and reads the real cache. It does not create or modify provider state.

## Browser interaction selectors

```text
/settings/providers
button[aria-label="Add provider"]
[role="radio"]:has-text("Antigravity")
button:has-text("Next")  (twice)
[role="combobox"]:has-text("Google account")
[role="option"]:has-text("Gemini API key")
#add-provider-antigravity-apiKey
button:has-text("Add instance")
button:has-text("Refresh provider status")
button[aria-label="Select Antigravity"]
```
