mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
## Why An explicit `final_answer` with empty or whitespace-only text could allow queued agent mail to restart the turn instead of leaving it queued for the next turn. ## What changed Treat explicit `final_answer` messages as terminal regardless of visible text in both completed-item handling and turn-item finalization. Untagged messages still require visible text to defer mailbox delivery; `commentary` and `partial_answer` messages do not defer it. ## Testing Extend regression coverage for empty and whitespace-only final answers, delivery of queued agent mail on the next turn, and message board notifications arriving before or after an empty final answer. GitOrigin-RevId: 466f1a9c613e07d67ce45458858ba32d5d23f11d