mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
## Why Persisted history can still show a turn as in progress after its task has stopped. A review interrupted by a crash can also lack an exit event, leaving the resumed TUI in review mode. ## What changed - Treat in-progress turns as interrupted when legacy or anchored resume history reports a non-active thread. Preserve in-progress turns on unanchored pages, which can include a turn started after the status was read. - Reconcile buffered thread status updates during resume. An idle update clears activity restored from history while preserving newer live turns and retaining elapsed time for a later completion event. - Reset review state when replay reaches an interrupted turn and end review mode at the same boundary when backtracking. ## Testing Extend resume and replay coverage for stale and live turns, buffered idle updates, and elapsed time when completion arrives after idle. GitOrigin-RevId: ac46b271e86960e7e7b7e81d1c45f7ef655118fa