# Pi rewind reproduction

Environment: Linux web dev app, Chromium, 1280x800 CSS viewport, dark theme, Pi 1.6.0, anthropic/claude-haiku-5-5. Each commit ran from its own checkout and fresh database with T3CODE_DEV_SEED=0. No production database was seeded or copied.

1. Start `T3CODE_DEV_SEED=0 vp run dev` and pair the browser using the printed URL.
2. Add Pi in Settings > Providers. Set its Launch arguments to `--extension <absolute path to newsess.ts>` and blur the field to save it. The attached extension registers only `/newsess` and calls `ctx.newSession` with the current session file as parent.
3. Initialize an empty git repository and add it as a project (CLI `project add` uses the real server). Create a new thread through the project's breadcrumb button, retaining Pi / Claude Haiku 5.5.
4. Send through the composer: `Reply with exactly the word ALPHA and nothing else.` Wait for ALPHA.
5. Send through the composer: `Reply with exactly the word BRAVO and nothing else.` Wait for BRAVO.
6. Type `/newsess`, observe its description in the command menu, accept and submit it. Wait until the provider is idle.
7. Hover BRAVO, click its Edit from here button, then Revert and keep changes.

Base 2b84f4862ce7320bdff28cef88d3ed8d0f23797e: rollback error banner; BRAVO and /newsess remain; composer empty. The server reports `PiRpcError: Pi RPC fork failed: Invalid entry ID for forking.`

Head a01592a2387b0e5b3aeb55f18dd59d6af0a34688: only ALPHA remains and the BRAVO prompt returns to the composer. Persisted provider thread points to a forked session; turn 1 and turn 2 originally pointed to the pre-extension session, confirming the reproduction switched files.

Additional head check, captured in after-repeat.mp4:
8. Replace the restored BRAVO draft with `Reply with exactly the word CHARLIE and nothing else.` Submit and wait for CHARLIE.
9. Execute `/newsess` again. Edit from here on CHARLIE > Revert and keep changes.
10. ALPHA remains; CHARLIE returns to the composer. Replace it with `What single-word replies have you given earlier in this conversation? Reply with only those words.` The real model answers only ALPHA. A read-only inspection of the active Pi file immediately after the second rewind showed only the ALPHA user/assistant messages (plus system metadata), with no BRAVO or CHARLIE.

The second check cannot continue on the base through this same flow because its first rewind fails.

Recordings begin with the session-switch command and cover the rewind confirmation and result. Setup is not included. All uploaded content is synthetic.
