# OpenCode 1.x worktree handoff proof

Environment: Linux web dev app, separate checkouts and fresh databases, real OpenCode 1.19.6 and Pi, openai/gpt-5.6-luna via the configured provider hub, light theme. Browser viewport: 1440×900 CSS pixels, device scale 2 (2880×1800 PNG and MP4 captures). All repositories and conversations are synthetic.

Base: 44a533378653164dea96435e23c8ea27efaffedb
Head: f8becf2db57d35be2ca00b4df35584b8bf297871

1. Install dependencies in both checkouts with `vp i` and start `T3CODE_ENVIRONMENT_LABEL='Handoff proof' T3CODE_DEV_SEED=0 vp run dev`.
2. Create an empty synthetic Git repository with one initial commit, add it with `t3 project add`, enable OpenCode and Pi with the settings RPC, set a synthetic worktreesDirectory, and start an OpenCode thread using `openai/gpt-5.6-luna`: `Reply with the single word ready.` Wait for completion.
3. Select Pi with `thread.model-selection.set`, send `Call t3_worktree_handoff to move this thread into a new worktree named streaming-proof-<side>. Do not create any files or make other changes. After the handoff, reply with the single word moved.` Confirm the thread's worktreePath changed. On head the first Pi reply said moved without calling the tool, so the request was repeated explicitly once. Base called it immediately.
4. Select OpenCode again and record the web thread. Send `Run the shell command pwd and reply with its output only.`
5. Base stays Working with no tool calls or assistant response. Head streams and finishes its first turn (replying moved due to the previous context-transfer instruction); repeat `pwd` on head to show the shell tool and the new worktree path, then send `Reply with the single word hello.`
6. After observing the base wedge for over four minutes, Stop and send `Reply with the single word hello.` It fails immediately with previous turn still running. Head replies hello normally.

`driver.mjs` uses the server's real authenticated CLI and WebSocket RPC. It never edits the database. `seed.sh` describes the synthetic project setup. Videos show real app output, with no replay provider or mocked provider traffic.
