mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Background commands can outlive their launching turn. Their network reviews need the original execution environment even when current turn settings change, and pending reviews must stop when the execution is cancelled. ## What changed - Capture the execution's environment snapshot for Guardian network reviews while continuing to use current review settings. - Deny requests from already cancelled executions before checking session host grants, and resolve pending approvals as denied when execution cancellation interrupts review. - Preserve accepted review results and session grants when cancellation happens after acceptance. ## Testing Add regression coverage for same-turn and later-turn settings changes, the original review working directory, cancellation before and after review acceptance, late callbacks, background process termination, and reuse of accepted session grants by new executions. GitOrigin-RevId: 29487488da9ab43700ba6684c61eea86f30a03a8