# Desktop startup migration reproduction

Environment: Linux x86_64, Electron 44.10.1, Xvfb 1920×1080×24, GPU disabled. Each run uses a fresh isolated desktop profile and T3 home. No live or copied user data is used.

1. Build each checkout with `vp i` and `vp run build:desktop`; install its Electron runtime with `node node_modules/electron/install.js` from apps/desktop.
2. Run `node seed.mjs <checkout> <seed-home>` separately for each checkout. This invokes that checkout's real migrator with `toMigrationInclusive: 110`.
3. Run `python3 populate.py <seed-home>/userdata/statev2.sqlite` separately for each seed. This inserts 3,000,000 superseded run attempts and 4,000,000 skipped workflow runs, each with a synthetic 2,000-character JSON payload. The resulting database is about 17 GiB.
4. Run `headless-desktop node capture.mjs <checkout> <seed-home>/userdata/statev2.sqlite <output-directory> <before|after>`. The driver copies the seed into a fresh run home, starts ffmpeg before launching the built Electron app, and captures the unmodified startup flow through Welcome. It supplies `T3CODE_DEV_SEED=0`, `T3CODE_HOME`, isolated XDG profile directories, `--no-sandbox`, and `--disable-gpu`.
5. The driver takes screenshots 500 ms apart and saves each visible stage only after two consecutive screenshots are byte-identical. The full-screen video includes the real Electron window; PNGs show its renderer content.

Expected: database upgrade explanation, available migration count and progress bar, keep-open guidance, then normal Welcome without the upgrade status.
