# Desktop picked-element screenshot proof

Both sides use the same driver, a new database and a new Electron profile. No model turn is submitted. Linux/Xvfb, Electron 44.10.1, light theme, native window 1600×1000 at device scale 1. The Browser panel and guest both measure 700×920; the full card is 540×180. No CDP viewport emulation is used.

Place `run-proof.sh`, `proof-driver.cjs` and `dashboard.html` together. Prepare two clean checkouts: base [009966d073](https://github.com/pingdotgg/t3code/commit/009966d073aa093832ed39278f524e9870adffd6) and head [c765d6fc10](https://github.com/pingdotgg/t3code/commit/c765d6fc10272fc9a2a01b91107cab1c2d8bdda5). From the directory containing the three proof files, run one at a time (substitute checkout paths and choose new output directories):

```sh
headless-desktop bash run-proof.sh "$BASE_CHECKOUT" "$PROOF_OUTPUT/base" 39384
headless-desktop bash run-proof.sh "$HEAD_CHECKOUT" "$PROOF_OUTPUT/head" 39383
```

The launcher installs dependencies, obtains Electron from the desktop package, builds and starts the real app with `dev:desktop`, and drives it over CDP. It adds `--no-sandbox --disable-gpu` through an executable wrapper; it does not edit application code. Startup logs stay in the selected output directory. Its EXIT trap stops the dev runner and fixture server it spawned. Each run took approximately two minutes including rebuilding on the capture machine.

The driver skips importing provider history, creates one synthetic project named Polling dashboard through the UI, opens Browser, and navigates to the included fixture. It dismisses the project-created notification before recording, since that notification includes a local filesystem path.

The three separately recorded interactions run in this order, clearing the unsent draft and reloading the fixture between them:

1. **Control:** Annotate preview, pick the empty bottom-right interior of `div#card`, type `make this green`, immediately press Enter before replacement. Both commits attach a 580×220 crop (540×180 card plus 20px padding on each side), without an error toast.
2. **Delayed attachment:** Same pick and comment, wait five seconds while the page replaces the card every two seconds, then click the visible Attach button. Base shows the capture-error toast and Screenshot unavailable in chip details. Head shows the full cropped card in chip details without a capture-error toast. Both editors remain visible beneath the complete card while waiting.
3. **Detached pick followed by scroll:** Same delayed pick, then send a real wheel event to scroll the guest down 100px before Attach. On head the saved rectangle is deliberately invalidated: the annotation remains, with Screenshot unavailable and the capture-error toast, rather than a crop from stale coordinates. Base also lacks a screenshot in this case. Compare head's delayed success against its scroll fallback to verify the new guard.

The MP4s are continuous native X11 recordings at 20fps. The PNGs capture the native Electron window, including the webview. For each still, the driver requires two byte-identical screenshots taken 500ms apart. `observations.json` records viewport measurements, the visible editor bounds, the original node's `isConnected` value, refresh counters, scroll offset and crop dimensions. The observations support the captures; no unit tests are used as proof.

The scenario runner was not used because this path requires the Electron guest-webview picker preload and desktop screenshot IPC.

Proof collected by gpt-6.1-sol in the Codex harness.
