jif
400f2356d6
Preserve conversation history when compaction fails ( #53932 )
...
## Why
Compaction could record partial output before the response completed, leaving failed summaries in conversation history and persisted rollouts.
## What changed
Buffer compaction output until `response.completed` so failed or incomplete attempts leave no partial output in history. Record successful output before the response completion notification, preserving its compaction metadata.
## Testing
Add regression coverage for preserving messages, tool results, and token usage after a disconnected compaction stream, including after restart. Verify incomplete compaction output is excluded from subsequent requests and successful output remains observable and persisted.
GitOrigin-RevId: 8651200b2aae616000c55c1ed63283f3e2c1b8d5
2026-10-14 09:44:24 +00:00
..
2026-10-12 13:39:54 +00:00
2026-10-14 07:13:22 +00:00
2026-10-09 13:15:39 +00:00
2026-10-08 05:29:11 +00:00
2026-09-30 00:51:39 +00:00
2026-10-14 02:01:49 +00:00
2026-10-11 15:57:06 +00:00
2026-10-14 03:26:47 +00:00
2026-10-13 22:21:31 +00:00
2026-10-08 20:11:43 +00:00
2026-10-14 02:51:53 +00:00
2026-10-12 11:24:22 +00:00
2026-10-12 15:43:27 +00:00
2026-10-06 23:44:17 +00:00
2026-10-09 21:29:36 +00:00
2026-10-07 22:11:14 +00:00
2026-09-30 18:49:29 +00:00
2026-10-14 07:13:22 +00:00
2026-10-01 22:32:29 +00:00
2026-10-10 08:51:21 +00:00
2026-10-10 08:51:21 +00:00
2026-10-08 19:15:17 +00:00
2026-10-10 02:14:13 +00:00
2026-10-13 15:24:00 +00:00
2026-10-14 02:01:49 +00:00
2026-10-13 19:55:22 +00:00
2026-10-14 02:01:49 +00:00
2026-10-14 09:44:24 +00:00
2026-10-06 23:28:55 +00:00
2026-10-13 19:28:21 +00:00
2026-10-08 20:11:43 +00:00
2026-10-13 16:57:54 +00:00
2026-10-13 20:40:38 +00:00
2026-10-13 20:40:38 +00:00
2026-10-14 02:01:49 +00:00
2026-10-13 16:15:41 +00:00
2026-10-13 18:15:50 +00:00
2026-10-07 11:18:05 +00:00
2026-10-01 09:52:54 +00:00
2026-10-07 17:59:22 +00:00
2026-10-13 17:22:34 +00:00
2026-10-01 15:57:03 +00:00
2026-10-13 15:05:16 +00:00
2026-10-10 01:25:00 +00:00
2026-10-14 02:01:49 +00:00
2026-10-09 15:13:29 +00:00
2026-10-08 16:19:09 +00:00
2026-10-09 15:29:50 +00:00
2026-10-08 20:11:43 +00:00
2026-10-10 19:43:24 +00:00
2026-10-08 20:11:43 +00:00
2026-10-07 18:32:50 +00:00
2026-10-02 23:26:27 +00:00
2026-10-06 01:46:33 +00:00
2026-10-09 22:11:30 +00:00
2026-10-12 23:46:16 +00:00
2026-10-14 03:52:30 +00:00
2026-10-06 21:29:35 +00:00
2026-10-14 02:01:49 +00:00
2026-10-14 02:01:49 +00:00
2026-10-10 02:54:59 +00:00
2026-10-12 18:53:49 +00:00
2026-10-07 22:11:14 +00:00
2026-10-13 16:23:44 +00:00
2026-10-13 17:54:31 +00:00
2026-10-07 07:57:14 +00:00
2026-10-09 22:11:30 +00:00
2026-10-08 16:19:09 +00:00
2026-10-13 22:07:59 +00:00
2026-10-10 01:25:00 +00:00
2026-10-02 00:46:14 +00:00
2026-10-12 17:52:12 +00:00
2026-10-13 07:32:21 +00:00
2026-10-13 23:06:58 +00:00
2026-10-10 01:25:00 +00:00
2026-10-14 08:05:19 +00:00
2026-10-01 18:05:05 +00:00
2026-10-13 22:40:57 +00:00
2026-10-14 02:01:49 +00:00
2026-10-01 15:57:03 +00:00
2026-10-08 01:12:16 +00:00
2026-10-12 16:58:24 +00:00
2026-10-01 15:57:03 +00:00
2026-10-07 22:11:14 +00:00
2026-10-13 22:40:57 +00:00
2026-10-13 16:15:41 +00:00
2026-10-12 13:39:54 +00:00