mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Message-board notifications delivered as ordinary injected input could cause an agent to sample again after its final answer. ## What changed Route notifications through the current turn's mailbox as `InterAgentCommunication`, checking atomically that the turn is running and still accepts mailbox delivery. Skip notifications when delivery is closed. Accepted notifications may remain in conversation history for a later turn without reopening the finalized answer or starting a new turn. Report pending inter-agent communications as mailbox activity, while preserving priority for steering input. ## Testing Add regression scenarios for notifications arriving before and after finalization, asserting no extra sampling and the expected notification presence in the next turn. Extend input-queue coverage to recognize already-pending mailbox activity. GitOrigin-RevId: 41d786041b4eccc5ccf926f2f190473676a3ac2f