mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Pending user input or agent mail could cause a regular task to restart immediately after a terminal compaction error, retrying the failed turn instead of completing it and preserving the pending input. ## What changed - Stop the regular-task continuation loop when the turn records a terminal error. - Allow turn completion to persist pending input so a later explicit request can retry it after the error is resolved. ## Testing Added coverage for pre-turn and mid-turn compaction failures with steered input, queued agent mail, and mail that triggers a turn. GitOrigin-RevId: 48c7a2cba44ac2444957556dd94910fb34515f09