mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why The desktop client declines all open command approval prompts before sending Stop. If the first decline is still being recorded in history, a second queued decline can keep Stop from reaching the active turn. ## What changed Queue consecutive declines for the same active turn and record them in submission order. If Stop follows, interrupt the turn while the declines are still being recorded, then finish recording them before publishing the turn-aborted event. ## Testing Extend the interruption regression test to cover two declined prompts followed by Stop. It checks that the running sibling command stops while history is blocked, both commands are recorded as declined before the turn-aborted event, and completed sibling output is preserved. GitOrigin-RevId: 00ac946378cc5fcf6c77e4a657aaa64508d60421