mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why An asynchronous approval currently waits for the redundant synchronous review to finish cancellation cleanup before returning a decision. ## What changed Cancel the redundant review and let it drain under the parent's `ReviewerTasks` tracker so a current approval can return immediately. Revalidate the approval and check cancellation before approving the action. Hosts without a task tracker continue to wait for cleanup. Keep the reviewer reservation held until cleanup completes, and let shutdown join the tracked attempt. Discard late results and evidence from the cancelled review. ## Testing Add tests covering current, invalidated, and cancelled approvals while cleanup is blocked, suppression of late evidence, reviewer reservations during cleanup, and shutdown waiting for abandoned attempts. GitOrigin-RevId: f227738e545243f99c19a6c557a78d330f9d2767