mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why Recording a declined command can delay tool-result delivery. When one-shot commands shared that pause for runtime limits, a sibling command could keep running past its configured `timeout_ms`. ## What changed Track command timeouts separately from tool-result delivery. A proposed command holds result delivery through setup and resolution, while its approval prompt pauses command timeouts only while a decision is pending. A running one-shot command can then time out while its result is still held, with its terminal ID remaining addressable until result collection finishes. ## Testing Cover the pause states before, during, and after the approval prompt. Exercise both a sibling command that times out and one that exits normally while a decline is being recorded, checking terminal access and the exit status in the eventual tool result. GitOrigin-RevId: d359bfc99fb9c23e6c61e94d75040cd6c1b09c49