mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
## What changed Keep `shutdown_signal()` pinned across `tokio::select!` iterations and reset it only when it completes, so other events do not cancel and recreate the pending signal listener. ## Testing Update the WebSocket drain interruption test to use gated responses and keep a second turn active until the `turn/interrupt` reply arrives, preventing shutdown from racing the reply. GitOrigin-RevId: c939d84ed0e09c2ee49229e81a3becdfa6a4c7f1