olliem-oai
a0b85c7a66
Fix Guardian retained context spacing and empty assistant handling ( #48158 )
...
## Why
Complete assistant messages with empty text can produce misleading omitted-context notices in Guardian reviews.
## What changed
- Skip complete, empty assistant messages when recording and rendering retained context, while preserving omission notices for incomplete messages.
- Separate retained instruction fragments with blank lines and keep blank lines free of role prefixes, while labeling every nonempty line with its original role.
- Update source-order guidance detection and empty-section deduplication for the added spacing.
## Testing
Extend retained-context tests to cover empty completed messages across resume, restored empty messages, incomplete-message notices, blank-line spacing, and role labeling. Update Guardian prompt snapshots.
GitOrigin-RevId: e945717b18689fa4538d9b617b89a644858ab1c8
2026-09-25 18:28:46 +00:00
..
2026-09-25 14:06:57 +00:00
2026-09-25 17:15:29 +00:00
2026-09-25 10:49:50 +00:00
2026-09-25 14:54:51 +00:00
2026-09-01 18:24:56 +00:00
2026-09-25 18:28:46 +00:00
2026-09-09 17:45:37 +00:00
2026-09-14 15:30:22 +00:00
2026-09-22 23:37:39 +00:00
2026-08-31 22:38:23 +00:00
2026-09-19 01:21:32 +00:00
2026-09-25 17:15:29 +00:00
2026-09-24 00:37:56 +00:00
2026-09-24 00:37:56 +00:00
2026-09-19 02:15:20 +00:00
2026-09-25 16:28:36 +00:00
2026-09-25 11:43:35 +00:00
2026-08-25 13:10:24 +00:00
2026-09-24 21:55:06 +00:00
2026-09-19 02:15:20 +00:00
2026-09-19 01:21:32 +00:00
2026-09-16 04:59:23 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-09-14 23:25:09 +00:00
2026-09-09 17:56:06 +00:00
2026-09-24 22:54:29 +00:00
2026-09-24 22:54:29 +00:00
2026-09-24 22:54:29 +00:00
2026-09-25 17:05:53 +00:00
2026-09-22 09:50:48 +00:00
2026-09-24 10:39:10 +00:00
2026-09-25 00:07:35 +00:00
2026-09-17 23:54:31 +00:00
2026-09-09 18:40:53 +00:00
2026-09-09 18:40:53 +00:00
2026-09-16 22:26:40 +00:00
2026-09-17 01:38:13 +00:00
2026-09-25 10:49:50 +00:00
2026-09-25 14:54:51 +00:00
2026-09-25 15:03:02 +00:00
2026-09-10 18:24:13 +00:00
2026-09-25 15:03:02 +00:00
2026-09-01 13:43:27 +00:00
2026-09-20 19:42:18 +00:00
2026-08-25 19:54:52 +00:00
2026-09-23 02:18:40 +00:00
2026-09-25 14:15:05 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 21:19:08 +00:00
2026-08-10 01:44:30 +00:00
2026-09-03 00:17:19 +00:00
2026-09-01 14:43:27 +00:00
2026-08-20 07:03:02 +00:00
2026-09-01 18:24:56 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-18 23:07:36 +00:00
2026-09-18 23:07:36 +00:00
2026-09-23 18:40:12 +00:00
2026-09-14 22:58:51 +00:00
2026-08-21 21:17:42 +00:00
2026-09-24 14:48:41 +00:00
2026-09-21 22:58:49 +00:00
2026-09-21 22:58:49 +00:00
2026-09-24 00:37:56 +00:00
2026-09-23 02:18:40 +00:00
2026-09-24 20:39:37 +00:00
2026-08-29 06:05:28 +00:00
2026-09-20 19:42:18 +00:00
2026-09-23 20:05:09 +00:00
2026-09-25 02:54:07 +00:00
2026-09-25 17:15:29 +00:00
2026-09-16 15:17:41 +00:00
2026-09-23 22:10:04 +00:00
2026-09-23 22:10:04 +00:00
2026-09-23 00:47:34 +00:00
2026-09-09 17:46:00 +00:00
2026-09-04 21:17:25 +00:00
2026-08-17 04:01:37 +00:00
2026-09-22 22:20:00 +00:00
2026-09-23 17:34:58 +00:00
2026-09-15 22:52:56 +00:00
2026-08-31 22:38:23 +00:00
2026-09-15 17:09:11 +00:00
2026-09-24 18:06:07 +00:00
2026-09-23 19:53:11 +00:00
2026-09-24 13:09:49 +00:00
2026-09-19 01:03:55 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-08-31 23:29:20 +00:00
2026-09-17 18:20:28 +00:00
2026-08-23 20:08:40 +00:00
2026-08-24 10:56:54 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-25 14:15:05 +00:00
2026-09-25 14:15:05 +00:00
2026-08-20 06:03:25 +00:00
2026-08-20 06:03:25 +00:00
2026-09-21 20:34:46 +00:00
2026-08-13 11:11:26 +00:00
2026-09-13 06:53:20 +00:00
2026-09-23 20:07:03 +00:00
2026-09-24 18:07:37 +00:00
2026-09-25 17:15:29 +00:00
2026-09-24 18:07:37 +00:00
2026-09-10 18:24:13 +00:00
2026-09-18 23:37:35 +00:00
2026-09-17 19:55:20 +00:00
2026-09-21 18:19:07 +00:00
2026-09-17 18:20:28 +00:00
2026-09-05 13:02:49 +00:00
2026-09-04 12:56:26 +00:00
2026-08-25 17:41:22 +00:00
2026-09-18 00:25:37 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-09 19:31:12 +00:00
2026-09-23 18:40:12 +00:00