mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why A Guardian V3 shadow review could keep running after its live review or owning turn was interrupted, leaving the reviewer slot occupied. ## What changed - Cancel the shadow when a pending live review is cancelled or dropped, and let the live review finish its cleanup on cancellation. - Cancel in-flight shadows when their owning turn is aborted, even if the live verdict is already available, and prevent new shadows for that turn. On normal turn completion, shadows can finish independently. ## Testing Cover tool cancellation during live-review cleanup and turn interruption both during review and after approval. The app-server test also checks that a later turn can start a shadow and complete while it is still running. GitOrigin-RevId: 45df0575853d5f8ca7ef7282fcd0fa1f22fed6c5