# Real-editor launch capture

The scenario uses a fresh server database, a synthetic Git project and Replay (dev).
The runner's recording-only Cursor shim was replaced with a launcher for the official
Cursor 3.32.24 Linux x64 AppImage, downloaded from Cursor's official update endpoint.
No provider or editor responses were fabricated.

Extract the AppImage as `squashfs-root` under your scratch directory. Set
`EVIDENCE_ROOT` to that directory. In `scripts/scenarios/start-app.ts`, replace the
`writeFakeCli` block for `cursor` with an executable shell wrapper which exports
`T3_EDITOR_HOME` as the scenario home and invokes `editor-launch-driver.mjs`,
forwarding `"$@"` unchanged. Pass `EVIDENCE_ROOT`, `DISPLAY`, `XAUTHORITY` and
`DBUS_SESSION_BUS_ADDRESS` using `T3_SCENARIO_INHERIT_ENV`.

Run `scenarios:prove` under `headless-desktop` with the uploaded scenario.
The driver launches the real Cursor executable, reads its live Linux process
command line, verifies it contains T3's target, and records a sanitized receipt.
It then terminates the captured editor PID. The receipt replaces only the
synthetic project root with `demo/`; the filename's whitespace is unchanged.

This proves the editor-launch target, matching the reported reproduction's
argument observation. It does not prove rendering inside Cursor: the editor's
first-run screen requires an account. The scenario checks only the original
leading-space case; trailing-space filenames are not covered.
