# Restored update retry proof

Base: 667116eee966bb740a566431cdf60eb223d1685e
Head: c2d885a0d383e687784ecc18bfed290a091c3280

Run the same procedure in separate checkouts of each commit. Install dependencies with `vp i`, then build with `T3CODE_DEV_SEED=0 vp run build:desktop`. Start the matching web renderer with `T3CODE_DEV_SEED=0 vp run dev:web` and retain its localhost port.

Run each real Electron app under `headless-desktop`, with `--no-sandbox --disable-gpu --remote-debugging-port=<unique port> dist-electron/main.cjs` from apps/desktop. Set `VITE_DEV_SERVER_URL` to its matching Vite URL, `T3CODE_PORT` to a free backend port, `T3CODE_HOME` to its own fresh data directory, and use `XDG_CONFIG_HOME` to isolate additional Chromium profiles (the base used the initially empty dev profile; head used a separate fresh profile). Set `T3CODE_DEV_SEED=0` and `T3CODE_ENVIRONMENT_LABEL='Proof workstation'`. Finish onboarding with no history imports.

Download released t3 0.1.10 through its npm shim into a scratch T3CODE_HOME. Copy the complete runtime directory to each side's own fresh service home at runtime/versions/0.1.10. Write runtime/service-state.json as `{"protocol":4,"activeVersion":"0.1.10"}`. Start that runtime with `t3 __service-launcher`, a distinct free T3CODE_PORT, T3CODE_HOST=127.0.0.1, and the service's own T3CODE_HOME. Mint its pairing URL with `t3 pair` using that home. Pair it through Settings > Environments > Add environment (paste the pairing URL into Host). Select List. Confirm Connected, 0.1.10 and an available server update.

Close Settings. Run seed-restored.cjs from apps/desktop with PROOF_CDP_PORT set. It gives the saved connection a synthetic display label and writes the actual saved handoff record for target 0.1.11, starting 32 minutes minus 45 seconds ago. Quit Electron by its retained PID and reopen it with the same environment and data directories. Do not change clocks or update code. The app's actual 32-minute timer expires within 45 seconds.

Close DevTools. Drag the sidebar to its maximum width (459 px). Both client viewports are 1100x780, light appearance, on Linux Xvfb. After failure, open the capsule by clicking near its left edge. The base has only Dismiss; head has Retry and Dismiss. The stills were captured only after screenshots 500 ms apart were byte-identical.

Run capture-flow.cjs with PROOF_CDP_PORT, PROOF_OUTPUT (a new output directory), PROOF_DISPLAY, and XAUTHORITY. The 1100x780 app window is at +410,+150 on its 1920x1080 virtual display. It records the failed row, confirms Settings still shows Connected at 0.1.10 with its update action, returns to the failed capsule, and clicks Retry if present. Base has no Retry. Head starts downloading, updates the real service, reconnects, removes the update action and clears the capsule. The launcher's service-state.json independently records activeVersion 0.1.11 and update status committed. The Settings row hides the version once it matches the app version.

The actual app self-update/install is replaced by the saved handoff record, as in the supplied triage reproduction. There is no mocked connection, capability, server update, timer, or result state. No tests are used as evidence. All data is synthetic; credentials and raw startup logs are excluded from uploads.
