mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why A stalled WebSocket write can leave the remote client's command queue full. Shutdown can then wait indefinitely to enqueue its command, before it reaches the timeout that allows it to abort the worker. ## What changed Apply `SHUTDOWN_TIMEOUT` to enqueuing the shutdown command so the client can reach the existing worker abort fallback even if the queue stays full. ## Testing Add a paused-time regression test that keeps the queue full with a stalled worker and verifies that shutdown returns and the worker has finished. GitOrigin-RevId: d7c1a90442cd2619893144b20e43f6d87d5caa94