# Ordered real-Codex startup stop reproduction

Run each checkout with dependencies installed and T3CODE_DEV_SEED=0 vp run dev. Use a fresh database per commit, not a copied database. Use the default server project and a new draft thread on both sides. Pair the browser, set Settings → Providers → Codex → Binary path to the executable ordered-delay-proxy.py. Its REAL_CODEX_BINARY defaults to the installed codex. It forwards actual CLI requests and responses, never synthesizes provider messages. The export uses portable paths; the capture version used absolute paths to the same CLI and log directory.

Codex CLI 0.174.0; OpenAI API-key mode through the configured endpoint; gpt-6.1-sol, low reasoning, full access. Browser viewport 1280×800, light theme, sidebar and thread details collapsed on both sides. In both runs leave provider home/config at its default.

Select GPT-6.1-Sol, close its picker, type the exact prompt below. Begin recording, then execute this browser interaction:

```js
window.proofEvents=[{event:"submit",at:new Date().toISOString(),text:document.body.innerText}];
document.querySelector('button[aria-label="Submit message"]').click();
setTimeout(()=>{
 const b=document.querySelector('button[aria-label="Stop generation"]');
 window.proofEvents.push({event:"stop",at:new Date().toISOString(),found:!!b,text:document.body.innerText});
 b?.click();
},4000);
```

Prompt: Write the numbers from 1 to 150 as English words, one per line. No tools.

Wait beyond native turn/completed. Capture the final state and read window.proofEvents. The proxy gates every stdout line starting with the first native turn/start response or turn/started; after eight seconds it flushes the entire queue in original stream order. Stdin stays live so T3 can send interrupts. No later delta can overtake turn/started.

The uploaded protocol extracts omit non-turn setup messages and the turn/start system context for privacy. They retain the actual start response, turn/started, every agent message delta, turn/interrupt if sent, final items and turn/completed. Times are seconds since the proxy process started. UI captures alone look stopped on both commits: the defect is the real provider continuing after Stop. The native traces and native output are required evidence.
