# Real Cursor cancellation reproduction

Run each commit in its own checkout, dependencies installed, with fresh state:

```sh
T3CODE_DEV_SEED=0 vp run dev
node apps/server/src/bin.ts project add --base-dir .t3 --title Unicode-proof .
```

Open the printed pairing URL. In Settings > Providers, add Cursor with default identity/config.
The server inherits the available CURSOR_API_KEY; never publish its value.

Start the turn through the real server (same prompt on both commits):

```sh
node apps/server/src/bin.ts thread start --base-dir .t3 --provider cursor --model composer-2.5 --title Unicode-cancellation . "Run exactly this shell command in the foreground (do not background it, do not add a timeout, do not modify it), and just wait for it: node -e 'process.stdout.write(\"😀\" + \"a\".repeat(262143)); setInterval(() => {}, 1e9)'" --json
```

Open the returned thread in the app. Begin browser recording. Wait for Running node and confirm
the foreground process is running. Press the Stop generation button. Wait for Run interrupted ·
Stopped by user. Stop recording. The captured interaction used this DOM operation to press Stop:

```js
document.querySelector('[aria-label="Stop generation"]').click();
```

Read the isolated database with inspect-projection.py. Get the interrupted command's turn_item_id
with a read-only query to orchestration_v2_projection_turn_items. In the authenticated browser,
run inspect-detail.js's inspectDetail(threadId, itemId). This calls the real detail RPC.

Both runs used Linux, Chromium, a 1280x800 CSS viewport, the default light theme, fresh databases,
and real Cursor Composer 2.5. Recordings are cropped to the conversation to omit environment labels.
The runtime PNGs format the captured projection and detail JSON values; they are not app screenshots.
The app's clipped work-log row does not itself expose the Unicode defect.

Observed base: stored prefix U+DE00, 262144 code units. Detail: U+FFFD, 262140 code units,
with transport-truncation marker. Observed head: exactly 262143 ASCII a characters in storage and
detail, with neither replacement character nor transport-truncation marker.
