mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
## Why A completed environment hook can be held up by a queued output-read RPC when its executor is busy, delaying the hook's decision. ## What changed - Race pushed process events against output polling so a complete, ordered event stream can deliver the hook's output and exit status immediately. Retain polling as a fallback when events are incomplete or unavailable. - Include launch-parameter preparation in the hook's timeout budget. ## Testing Extend the executor ownership test to hold the owner's RPC slot while a `PreToolUse` hook finishes. Cover both allowing and blocking commands, checking that the decision arrives before the slot is released and that only the owning executor receives the hook. GitOrigin-RevId: bc80b99a2a32379e3c2eafefe6db66a6a20f4048