Eric Traut
39b42aaacd
Handle unfinished tool calls in restored history ( #60519 )
...
## 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
2026-11-10 04:11:29 +00:00
..
2026-11-05 11:22:06 +00:00
2026-11-03 15:02:57 +00:00
2026-11-03 12:33:26 +00:00
2026-11-05 16:08:23 +00:00
2026-11-07 01:25:00 +00:00
2026-11-10 04:11:29 +00:00
2026-11-09 02:31:46 +00:00
2026-11-10 01:31:19 +00:00
2026-11-10 03:21:26 +00:00
2026-11-10 03:02:25 +00:00
2026-11-07 10:41:36 +00:00
2026-11-02 17:05:56 +00:00
2026-11-04 00:19:12 +00:00
2026-11-07 10:41:36 +00:00
2026-11-05 22:03:29 +00:00
2026-11-10 04:01:23 +00:00
2026-11-09 12:52:52 +00:00
2026-11-05 04:25:19 +00:00
2026-11-05 05:09:32 +00:00
2026-11-05 05:09:32 +00:00
2026-11-10 02:09:01 +00:00
2026-11-10 02:09:01 +00:00
2026-11-07 18:24:25 +00:00
2026-11-10 03:21:26 +00:00
2026-11-10 03:01:14 +00:00
2026-11-07 23:18:39 +00:00
2026-11-10 03:02:25 +00:00
2026-10-30 20:39:47 +00:00
2026-11-07 05:59:44 +00:00
2026-11-10 04:11:29 +00:00
2026-11-05 22:49:46 +00:00
2026-11-10 02:45:30 +00:00
2026-11-03 23:49:01 +00:00
2026-11-03 04:08:59 +00:00
2026-11-07 02:39:03 +00:00
2026-11-10 04:01:23 +00:00
2026-11-05 04:25:19 +00:00
2026-11-05 00:55:46 +00:00
2026-11-10 03:21:26 +00:00
2026-11-10 01:51:29 +00:00
2026-11-10 01:30:08 +00:00
2026-11-05 17:34:20 +00:00
2026-11-06 00:37:27 +00:00
2026-11-04 09:51:28 +00:00
2026-11-10 02:18:39 +00:00
2026-11-06 19:29:06 +00:00
2026-11-10 03:02:25 +00:00
2026-11-06 04:24:04 +00:00
2026-11-05 20:56:09 +00:00
2026-11-09 19:26:55 +00:00
2026-11-07 05:50:00 +00:00
2026-11-06 22:26:03 +00:00
2026-11-02 20:34:35 +00:00
2026-11-09 16:37:22 +00:00
2026-11-06 04:24:04 +00:00
2026-11-09 16:37:22 +00:00
2026-11-03 23:00:54 +00:00
2026-11-07 03:06:33 +00:00
2026-11-10 03:01:14 +00:00
2026-11-09 12:54:46 +00:00
2026-11-10 03:21:26 +00:00
2026-11-10 03:21:26 +00:00
2026-11-10 03:01:14 +00:00
2026-11-10 00:06:35 +00:00
2026-11-07 12:41:14 +00:00
2026-11-07 10:41:36 +00:00
2026-11-10 04:01:23 +00:00
2026-11-04 23:46:52 +00:00
2026-11-06 17:47:31 +00:00
2026-11-10 00:06:35 +00:00
2026-11-05 13:38:12 +00:00
2026-11-10 00:06:35 +00:00
2026-11-07 18:24:25 +00:00
2026-11-10 01:30:08 +00:00
2026-11-10 03:02:25 +00:00
2026-11-04 09:51:28 +00:00
2026-11-03 15:02:57 +00:00
2026-11-10 03:02:25 +00:00
2026-11-05 21:33:57 +00:00
2026-11-04 00:52:58 +00:00
2026-11-10 03:02:25 +00:00
2026-11-10 03:02:25 +00:00
2026-11-09 19:26:23 +00:00