# Pi failed-response proof

Environment: Linux web dev app; shared Chromium preview browser, 1280x800 CSS viewport (2560x1600 capture), light theme. Real Pi 1.6.0. Fresh databases with T3CODE_DEV_SEED=0. No production database was copied. Machine-name text was hidden for privacy before recording; behavior and result text were unchanged.

Base: 6632511cd8f523c2b9439272d776fb44c2bce110
Head: 6904c9305ae2a55e21dae3f7f527df9010ad7aaa

1. Run seed.sh for each synthetic repository. Both have one initial commit and the same one-line README modification.
2. Put models.json into a scratch Pi config directory. Start `node mock.cjs` (without RECOVER_AFTER).
3. In each checkout start `T3CODE_DEV_SEED=0 PI_CODING_AGENT_DIR=<scratch Pi config> vp run dev`. Open its printed pairing URL using localhost.
4. Projects -> Add project -> Local folder -> enter the synthetic repository path -> Enter. Open its new-thread draft. Confirm Changes Uncommitted +1 -0.
5. Settings -> Providers -> Add provider -> Pi -> Next -> Next -> Add instance. Pi 1.6.0 is Authenticated and lists Mock (fails after streaming), mockfail/mock-model.
6. Settings -> Source control & issues -> Commits & pull requests -> Advanced -> enable Use a separate source control writer model. Open Source control writer model; search Mock and choose Mock (fails after streaming).
7. Return to the synthetic repository's draft. Start recording. Click the Commit quick action without supplying a message. Wait for the result.
8. Inspect git log and git status.

Base result: four requests (first + three automatic retries); app displayed Committed da1a2b0, Update README with mock provider note. Git log contained that new commit; working tree was clean.
Head result: four requests; app displayed Action failed: Text generation failed in generateCommitMessage: Pi could not generate text: the model provider reported an error. Git log still contained only Initial project; git status showed M README.md.

Additional head case: restart mock with `RECOVER_AFTER=2 node mock.cjs` and click Commit again on the unchanged README modification. First response omits finish_reason; second supplies finish_reason stop. Two requests occurred, the app displayed Committed 2a8aaa7, and git confirmed the new commit with a clean working tree.

Recordings were inspected using contact sheets covering each second and full-size result frames. Primary proof is the complete interaction recordings. The screenshots are result frames extracted from those recordings, not separate runs.
