# Desktop hidden preview resize evidence

Run each revision in its own installed worktree with a fresh T3 home and isolated Electron profile. No production data or credentials are included. Electron 44.10.1, Linux/Xvfb 1920x1080, light theme, app window 1000x1080.

1. `node setup.mjs <worktree>` registers the existing free Replay agent and adds `--disable-gpu` to the development Electron launch arguments. The launcher already adds `--no-sandbox` on this host. No preview implementation is changed.
2. Run `T3CODE_DEV_SEED=0 T3CODE_DESKTOP_REMOTE_DEBUGGING_PORT=<port> XDG_CONFIG_HOME=<fresh-config> XDG_DATA_HOME=<fresh-data> headless-desktop vp run dev:desktop` from that worktree; retain the process/session for cleanup.
3. Create an empty synthetic Git repository named `preview-resize-proof`. Run `PROOF_CDP_PORT=<port> node seed.mjs <worktree> <repository>` to add it through the UI and start Replay Question, awaiting user input.
4. Run `PROOF_CDP_PORT=<port> node prove.mjs <worktree> before|after <commit>`. The driver reads only that checkout's replay subprocess credential, keeps it in memory, and calls the real MCP endpoint. It creates a new timestamped artifact directory alongside the driver.

The right-hand window in the recordings is an external live transcript of actual MCP responses, not product UI. Stills capture that transcript window only. Each still is selected after two pixel-identical captures 500 ms apart; the full app remains visible in the recording (its pending-input label animates). Recording the X11 desktop and transcript does not request a guest-page screenshot. The first `preview_snapshot` is deliberately delayed until all pre-snapshot measurements are complete.

The exact same driver calls open(false, new incognito tab), iPhone 12 Pro portrait resize, status, evaluate(innerWidth/innerHeight), waits 5 seconds, repeats resize/status/evaluate, captures the pre-snapshot observations, then takes the first preview_snapshot and measures again. Raw JSON responses accompany both recordings. The blank preview snapshot is saved locally only to confirm the guest screenshot dimensions.
