Ruslan Nigmatullin
d84c872464
Route response item IDs through a shared generator ( #59312 )
...
## What changed
Introduce `ItemIdGenerator` and pass the runtime-owned generator through sessions, model clients, history, hooks, tool outputs, and memory requests. Keep UUIDv7 generation as the default and replace direct calls to `ResponseItemId::new` with the shared callable.
Preserve existing item IDs and backfill missing or empty IDs through the same generator, including forked history before reconstruction and persistence.
## Testing
Extend coverage for UUIDv7 IDs on user messages, agent messages, and additional tools, and assert that forked model context matches the backfilled items persisted to history.
GitOrigin-RevId: 0dd9ccf0f46f0f1005a6acfc740133b03ce82259
2026-11-04 04:02:00 +00:00
..
2026-11-03 10:01:36 +00:00
2026-11-04 02:00:01 +00:00
2026-11-04 01:24:36 +00:00
2026-11-02 22:56:19 +00:00
2026-10-06 01:39:50 +00:00
2026-10-15 20:57:39 +00:00
2026-11-03 21:54:52 +00:00
2026-11-02 22:45:22 +00:00
2026-09-24 20:59:51 +00:00
2026-11-03 10:44:27 +00:00
2026-10-20 19:39:43 +00:00
2026-10-23 02:21:49 +00:00
2026-11-03 10:44:27 +00:00
2026-10-06 21:28:13 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 17:11:07 +00:00
2026-11-03 06:05:55 +00:00
2026-11-03 06:05:55 +00:00
2026-10-06 22:39:32 +00:00
2026-08-20 17:46:05 +00:00
2026-10-15 12:01:04 +00:00
2026-10-27 23:53:34 +00:00
2026-11-04 00:19:12 +00:00
2026-09-23 00:47:07 +00:00
2026-11-03 01:58:18 +00:00
2026-10-14 05:36:44 +00:00
2026-09-29 19:03:30 +00:00
2026-10-07 18:32:50 +00:00
2026-10-27 21:50:08 +00:00
2026-09-15 18:23:08 +00:00
2026-11-02 14:06:17 +00:00
2026-10-05 18:52:51 +00:00
2026-11-03 23:35:00 +00:00
2026-11-04 04:02:00 +00:00
2026-11-04 04:02:00 +00:00
2026-10-22 02:15:00 +00:00
2026-10-20 17:15:35 +00:00
2026-10-16 16:28:53 +00:00
2026-10-28 16:46:41 +00:00
2026-09-21 22:49:17 +00:00
2026-11-04 01:24:36 +00:00
2026-09-14 15:06:28 +00:00
2026-08-25 23:42:50 +00:00
2026-11-02 14:06:17 +00:00
2026-09-19 00:46:06 +00:00
2026-10-13 16:57:54 +00:00
2026-10-06 01:39:50 +00:00
2026-11-04 00:19:12 +00:00
2026-10-19 19:24:26 +00:00
2026-10-30 18:12:39 +00:00
2026-10-30 20:53:25 +00:00
2026-11-03 22:29:33 +00:00
2026-10-08 16:27:10 +00:00
2026-10-29 23:24:52 +00:00
2026-10-27 23:53:34 +00:00
2026-10-09 18:58:53 +00:00
2026-10-08 16:19:09 +00:00
2026-10-08 23:34:16 +00:00
2026-10-13 10:21:42 +00:00
2026-11-03 11:40:16 +00:00
2026-09-19 01:21:32 +00:00
2026-11-04 02:00:01 +00:00
2026-10-15 19:51:22 +00:00
2026-10-01 15:57:03 +00:00
2026-10-21 02:41:05 +00:00
2026-10-27 00:08:07 +00:00
2026-10-26 22:13:14 +00:00
2026-10-06 16:56:39 +00:00
2026-11-03 21:00:31 +00:00
2026-10-21 02:41:05 +00:00
2026-10-29 12:54:39 +00:00
2026-10-06 01:39:50 +00:00
2026-10-23 04:01:39 +00:00
2026-10-29 12:37:59 +00:00
2026-10-09 20:14:04 +00:00
2026-11-03 06:37:07 +00:00
2026-10-05 22:17:02 +00:00
2026-10-19 22:01:41 +00:00
2026-10-20 14:43:08 +00:00
2026-10-13 23:29:53 +00:00
2026-10-07 15:47:21 +00:00
2026-11-02 21:09:37 +00:00
2026-10-26 18:13:00 +00:00
2026-11-03 11:43:00 +00:00
2026-10-30 15:11:02 +00:00
2026-10-27 14:28:15 +00:00
2026-10-15 11:24:07 +00:00
2026-10-16 12:37:14 +00:00
2026-10-28 16:00:30 +00:00
2026-11-03 21:24:16 +00:00
2026-10-26 19:21:08 +00:00
2026-11-02 22:09:34 +00:00
2026-10-19 11:40:15 +00:00
2026-10-29 03:14:13 +00:00
2026-10-30 15:28:20 +00:00
2026-11-02 20:10:37 +00:00
2026-11-04 01:24:36 +00:00
2026-11-03 15:02:57 +00:00
2026-08-25 01:27:18 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-21 16:43:30 +00:00
2026-11-02 21:09:37 +00:00
2026-10-22 22:33:07 +00:00
2026-09-29 13:08:37 +00:00
2026-10-29 03:14:13 +00:00
2026-10-30 17:32:09 +00:00
2026-10-14 20:00:52 +00:00
2026-09-29 13:08:37 +00:00
2026-10-01 18:05:05 +00:00
2026-10-13 16:23:44 +00:00
2026-10-23 00:02:29 +00:00
2026-10-21 02:41:05 +00:00
2026-11-02 21:09:37 +00:00
2026-10-27 22:01:13 +00:00
2026-10-30 18:33:14 +00:00
2026-10-29 19:34:46 +00:00
2026-10-06 01:39:50 +00:00
2026-11-04 00:19:12 +00:00
2026-10-08 16:19:09 +00:00
2026-10-29 00:03:28 +00:00
2026-10-30 15:11:02 +00:00
2026-11-03 21:24:16 +00:00
2026-10-27 16:16:17 +00:00
2026-10-17 23:22:14 +00:00
2026-11-03 01:58:18 +00:00
2026-10-06 17:11:07 +00:00
2026-08-29 03:28:19 +00:00
2026-09-30 11:59:13 +00:00
2026-10-06 00:16:18 +00:00
2026-09-23 21:34:11 +00:00
2026-10-09 18:58:53 +00:00
2026-10-23 18:39:28 +00:00
2026-10-30 14:40:59 +00:00
2026-10-27 00:23:39 +00:00
2026-10-29 10:34:17 +00:00
2026-10-10 01:25:00 +00:00
2026-10-06 17:11:07 +00:00
2026-11-02 19:25:02 +00:00
2026-10-30 20:53:25 +00:00
2026-10-27 22:26:12 +00:00
2026-10-06 17:11:07 +00:00
2026-11-04 01:13:54 +00:00
2026-10-20 14:14:59 +00:00
2026-10-30 18:33:14 +00:00
2026-11-02 19:38:59 +00:00
2026-09-15 04:20:38 +00:00
2026-11-02 19:17:00 +00:00
2026-10-28 20:10:15 +00:00
2026-10-13 22:21:31 +00:00
2026-10-13 22:21:31 +00:00
2026-10-13 22:21:31 +00:00
2026-10-13 22:21:31 +00:00
2026-10-22 12:46:24 +00:00
2026-11-04 01:15:38 +00:00
2026-10-29 00:42:21 +00:00
2026-10-27 16:16:17 +00:00
2026-10-06 17:11:07 +00:00
2026-11-04 01:15:38 +00:00
2026-11-03 01:58:18 +00:00
2026-10-06 17:11:07 +00:00
2026-11-03 11:14:59 +00:00
2026-11-02 14:06:17 +00:00
2026-11-02 21:09:37 +00:00
2026-10-13 13:36:24 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 20:01:37 +00:00
2026-10-29 19:16:28 +00:00
2026-10-06 22:39:06 +00:00
2026-10-14 18:02:25 +00:00
2026-11-02 21:37:17 +00:00
2026-10-10 01:25:00 +00:00
2026-11-04 01:24:36 +00:00
2026-11-03 12:08:52 +00:00
2026-11-02 19:25:02 +00:00
2026-11-03 15:02:57 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 20:30:44 +00:00
2026-11-03 12:33:26 +00:00
2026-10-09 13:15:39 +00:00
2026-11-03 13:38:59 +00:00
2026-11-04 00:19:12 +00:00
2026-11-02 20:37:55 +00:00
2026-10-27 22:26:12 +00:00
2026-10-05 16:58:29 +00:00
2026-10-03 04:24:52 +00:00
2026-09-29 01:14:41 +00:00
2026-10-23 00:46:28 +00:00
2026-10-22 23:48:20 +00:00
2026-10-27 19:50:41 +00:00
2026-11-04 02:00:01 +00:00
2026-10-29 11:15:52 +00:00
2026-09-29 13:08:37 +00:00
2026-11-02 17:05:56 +00:00
2026-10-06 19:30:57 +00:00
2026-10-27 13:02:57 +00:00
2026-10-07 19:42:35 +00:00
2026-10-23 18:48:10 +00:00
2026-11-03 13:38:35 +00:00
2026-11-02 18:43:57 +00:00
2026-10-08 22:01:24 +00:00
2026-10-30 18:19:38 +00:00
2026-10-08 03:20:54 +00:00
2026-11-02 21:35:56 +00:00
2026-10-21 19:29:08 +00:00
2026-10-29 11:23:51 +00:00
2026-10-22 02:15:00 +00:00
2026-10-03 06:42:48 +00:00
2026-10-26 19:37:32 +00:00
2026-10-22 22:44:48 +00:00
2026-09-22 21:57:52 +00:00
2026-10-20 11:56:17 +00:00
2026-10-30 20:53:25 +00:00
2026-10-02 23:26:27 +00:00
2026-11-02 20:37:55 +00:00
2026-10-12 18:54:22 +00:00
2026-10-30 18:20:57 +00:00
2026-11-04 01:15:38 +00:00
2026-11-03 06:05:55 +00:00
2026-10-06 01:39:50 +00:00
2026-11-02 07:27:49 +00:00
2026-11-03 12:08:52 +00:00
2026-10-26 21:46:26 +00:00
2026-11-04 02:00:01 +00:00
2026-10-30 18:33:14 +00:00
2026-10-11 15:48:35 +00:00
2026-10-27 22:26:12 +00:00
2026-10-23 00:02:29 +00:00
2026-11-04 02:00:01 +00:00
2026-11-04 01:12:49 +00:00
2026-11-03 01:58:18 +00:00
2026-09-22 11:10:29 +00:00
2026-11-02 16:00:20 +00:00
2026-10-19 19:33:11 +00:00
2026-10-06 22:39:06 +00:00
2026-09-09 17:56:33 +00:00
2026-10-27 22:26:12 +00:00
2026-10-26 18:33:05 +00:00
2026-10-26 18:33:05 +00:00
2026-10-06 01:39:50 +00:00
2026-11-02 19:25:02 +00:00
2026-08-28 09:48:13 +00:00
2026-10-30 18:33:14 +00:00
2026-09-02 22:45:19 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:10:43 +00:00
2026-09-23 20:49:48 +00:00
2026-10-27 23:02:27 +00:00
2026-10-20 22:34:40 +00:00
2026-10-27 05:52:01 +00:00
2026-11-04 01:24:36 +00:00
2026-09-29 02:40:51 +00:00
2026-11-02 07:27:49 +00:00
2026-10-28 10:13:29 +00:00
2026-09-04 20:38:08 +00:00
2026-10-26 18:13:00 +00:00
2026-09-28 15:58:17 +00:00
2026-10-26 19:01:45 +00:00
2026-10-28 15:10:52 +00:00
2026-08-28 15:44:48 +00:00
2026-10-23 00:02:29 +00:00
2026-10-30 20:53:25 +00:00
2026-10-06 17:11:07 +00:00
2026-11-04 01:24:36 +00:00
2026-10-30 15:11:02 +00:00
2026-09-22 06:24:49 +00:00
2026-09-24 20:28:31 +00:00
2026-11-02 21:37:17 +00:00
2026-10-19 19:24:26 +00:00
2026-10-23 00:02:29 +00:00