mirror of
https://github.com/openai/codex.git
synced 2026-11-11 21:10:39 +00:00
## Why Forked and recovered sessions can restore a tool call before its output has been recorded. Missing outputs for these calls should be treated as interrupted work rather than an error. ## What changed Track the restored history's sequence cutoff so custom tool and local shell calls in that history can receive synthetic `aborted` outputs without reporting a missing-output error. Keep the existing checks for newly recorded calls and clamp the cutoff when history is replaced. ## Testing Extend the active-turn fork test with a pending `apply_patch` call and verify that the fork's model input includes its `aborted` output. GitOrigin-RevId: d989fa0991db72f0f8fa8a6d5de403fb307c40c7