mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why The sandbox denial check can spend 20 ms waiting for more output even after the stream has closed and all denial context is available. ## What changed Classify the buffered output immediately if the stream is already closed. While the stream is open, wait up to 20 ms for new output or closure. Register for the closure notification before rechecking the stream state so closure during setup wakes the check. ## Testing Paused-clock tests cover output closed before or during the check, preservation of the timeout for open streams, and classification of sandboxed and unsandboxed failures. The remote process-event suite adds a direct sandbox denial case with a `process/closed` event. GitOrigin-RevId: 1f3029055d70ff4cd63939564872fe5d37240a33