# Manual mobile capture driver

Use one isolated server/Metro per commit, a fresh data directory and the same cached native fingerprint. Set T3CODE_DEV_SEED=0. Run seed.mjs from the checkout with arguments <data-directory> <server-origin>. It creates a synthetic git project and four threads through real server API/CLI/RPC, uploads proof.txt through the real signed upload endpoint, starts Replay Long stream with `go`, and queues `Read` with a file context record and attachment. No database rows or provider responses are fabricated.

Install using `vp run mobile:install <platform> --session <session>`. Open the development-client URL with `--relaunch`; confirm the device appears in that checkout's Metro `/json/list` before captures. Pair using the repository's pair-client.sh. Open each thread with `t3code-dev://threads/<environment-id>/<encoded-thread-id>`.

## Removal

Start `agent-device record start <video> --session <session>`.
Press `Open queue, 1 message`, then the queued message row (`Actions for queued message 1` on iOS; `Read proof.txt` on Android).
For menu removal, tap the inline proof.txt chip (iOS accessible button; Android coordinates determined from screenshot), File actions, Remove from draft. Refocus Read on Android to expose the actual saved attachment strip.
For keyboard removal, press the software keyboard Delete key at the end of the inline chip (`role=key label="delete"` on iOS; Gboard `label="Delete"` on Android).
Press Update queued message, Stop agent, Resume thread, then Stop agent after the queued message dispatches. Dismiss the keyboard and scroll to the dispatched Read message. Capture the full native viewport and stop the recording.

## iOS Undo

Edit the Undo restore queue entry; press Delete to remove the chip. Bring up the native editing HUD with a three-finger tap inside the text field, then press `role=other label="Undo"`. The field must retain focus: tapping the conversation blurs it, and tapping the Cancel banner cancels the edit. Confirm both chip and strip return. Save, stop, resume and inspect the dispatched message.

## iOS own-file paste with failed download

Edit Own file paste; Delete the chip, then native Undo to restore and select it. In the native HUD press Copy. Run `python3 copy-failure.py <data-directory> fail`, which temporarily renames only synthetic proof.txt backing files so the real attachment HTTP route cannot read them. Press Paste over the selected chip. Base produces the real could-not-copy warning and marks the chip unavailable; head retains an available chip and the existing strip entry. Restore backing files with `python3 copy-failure.py <data-directory> restore`. Save and dispatch. This is a real server file-unavailable condition, not a mocked provider/service.

## Captures

iOS: iPhone 17 Pro, iOS 27.2, light, 402x874 logical screenshot viewport (native recording 1206x2622). Android: Pixel 9, Android API 36, light, 1080x2424, Gboard.
Videos retain interaction order and wall-clock speed, transcoded to 10 fps H.264 for upload. Discarded attempts include an iPhone that remained on the old Metro bundle and gestures that hit Cancel. The submitted head videos use the confirmed head runtime.
