mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why Dropping the remote client or cancelling its shutdown could leave the WebSocket transport worker running, even if it was stalled on a socket write. ## What changed Give the client an abort-on-drop task handle so dropping the client or cancelling its shutdown future aborts the transport worker. ## Testing Extend the full command queue regression test to cover shutdown, shutdown cancellation, and direct client drop. Each case verifies that the worker releases its command receiver and terminates. GitOrigin-RevId: a5a83b3ab8520d4096be444bc24676ac9c444cb1