# Native Codex shared-runtime reproduction

Environment: Linux, native Codex CLI 0.171.0, API-key authentication, gpt-6-luna, real T3 web client, 1280x800 CSS viewport (2560x1600 recording), light theme. Both commits use fresh isolated databases with automatic seeding disabled. Public videos crop the same central conversation area to exclude environment identifiers.

1. Start each checkout with `T3CODE_DEV_SEED=0 vp run dev` and retain the terminal session.
2. Initialize an empty synthetic git repository and add it with `node apps/server/src/bin.ts project add --base-dir .t3 --title 'Runtime recovery demo' <demo-dir>`.
3. Run `node apps/server/src/bin.ts thread start --base-dir .t3 --provider codex --model gpt-6-luna --title 'Codex recovery' <demo-dir> 'Reply with READY only.' --wait --json`.
4. Pair the web client using the dev server's pairing URL and open the returned thread by its URL. Confirm READY.
5. Identify the Codex app-server that is a direct child of this checkout's owned server PID; verify its parent and working directory before sending SIGSTOP to that PID.
6. Record the web client. Enter `Reply with SECOND only.` in the existing thread's composer and click Submit message. Leave the app-server stopped for at least two minutes.
7. Observe whether the client remains Starting Codex or shows a request deadline failure.
8. Send SIGCONT to the stopped app-server if it still exists. Manually send `Reply with RECOVERED only.` and observe the response. Check that the head's original process was retired and a replacement child serves this send.
9. Stop recordings, inspect frames, crop both videos identically, and upload public evidence.
