mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why The exec server can wait up to 20 ms for sandbox denial output even when all output streams have already closed. If the last stream closes during that wait, the close alone does not wake the exit watcher. ## What changed Skip the wait when all streams are closed and wake the exit watcher when the last stream closes. Register for notifications under the process lock so the exit watcher can observe stream closure and `process/read` can observe the exit as soon as it is published. ## Testing Add paused-clock regression tests for streams closing before exit, the final stream closing during the wait, and denial output arriving after the first stream closes. GitOrigin-RevId: 22715a0fbe4e582d82abcba8eab4802c42353f69