mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why Interrupting `exec_command` while startup is pending can leave a stale network approval registration. When the next command makes an untagged request through the shared proxy, the stale entry makes request attribution ambiguous and prevents an approval prompt. ## What changed Tie the registration to the command's approval handle from startup through completion. Remove the active entry and its stored outcome on explicit completion or when the last handle is dropped. Cache the outcome so that all deferred completion observers can report the same denial. ## Testing Add a regression test that interrupts a pending launch and checks that an untagged proxy request for the next command prompts for approval and returns HTTP 403 when denied. Cover cleanup when the last deferred handle is dropped and denial reuse across cloned handles. GitOrigin-RevId: 257a32695c487a92d15937772b09085a49533fd3