1. Preserve Codex provider thread ID instead of overwriting with orchestration UUID:
- reducer.ts: Use payload.session as-is instead of replacing its threadId
- wsServer.ts: Use event.threadId (Codex thread ID) with fallback chain in
turn/started, turn/completed, and error handlers
2. Set latestTurnStartedAt and latestTurnDurationMs in session-set reducer:
- Set latestTurnStartedAt when session transitions to running
- Compute latestTurnDurationMs when session transitions to ready
3. Fix stale closure in AutoProjectBootstrap causing duplicate threads:
- Use a ref for state.threads to always read the latest value in the async
.then() callback