liame-oai
ec8251c545
Add experimental prediction forks that inherit parent context ( #51884 )
...
## Why
Prediction forks need to preserve the parent's effective context and request settings to maximize prompt-cache reuse.
## What changed
- Add `experimentalPredictionMode` to `thread/fork` for ephemeral forks of loaded, persisted parents. Reject configuration overrides, `path`, `lastTurnId`, and `beforeTurnId` in this mode.
- Inherit the parent's effective configuration, tools, environments, collaboration settings, disabled plugins, and persisted history.
- Enable `features.reasoning_effort_override` on the fork while preserving the parent's request-effort baseline, including when overrides were disabled on the parent.
- Report the fork's effective model, service tier, and reasoning effort in the response.
## Testing
Add coverage for matching parent and fork requests and prompt-cache keys across legacy and paginated history, invalid fork parameters, and reasoning-effort inheritance. Add a context snapshot for identical parent and fork continuations.
GitOrigin-RevId: 46b41f2ac331562b441dadff1a0a9f926c94880d
2026-10-08 00:09:03 +00:00
..
2026-10-07 06:07:47 +00:00
2026-10-07 19:42:35 +00:00
2026-09-22 16:16:15 +00:00
2026-10-08 00:09:03 +00:00
2026-10-01 05:16:40 +00:00
2026-10-07 22:55:00 +00:00
2026-10-08 00:09:03 +00:00
2026-10-02 06:50:10 +00:00
2026-09-29 00:40:54 +00:00
2026-09-11 17:43:36 +00:00
2026-09-29 23:09:32 +00:00
2026-10-01 01:35:40 +00:00
2026-10-04 06:46:50 +00:00
2026-10-04 06:46:50 +00:00
2026-10-01 18:05:05 +00:00
2026-08-29 06:05:28 +00:00
2026-10-06 23:04:26 +00:00
2026-09-30 07:15:14 +00:00
2026-10-03 00:02:11 +00:00
2026-10-03 18:44:14 +00:00
2026-10-03 03:31:31 +00:00
2026-10-04 06:46:50 +00:00
2026-09-19 19:21:35 +00:00
2026-09-03 01:46:37 +00:00
2026-09-19 19:14:11 +00:00
2026-10-01 01:35:40 +00:00
2026-10-06 02:14:22 +00:00
2026-10-06 19:10:59 +00:00
2026-09-20 16:16:46 +00:00
2026-10-02 06:40:07 +00:00
2026-09-19 17:46:43 +00:00
2026-10-06 19:51:39 +00:00
2026-10-01 18:05:05 +00:00
2026-10-06 19:29:40 +00:00
2026-10-01 01:35:40 +00:00
2026-10-06 16:56:39 +00:00
2026-10-05 22:41:53 +00:00
2026-09-03 16:21:10 +00:00
2026-09-20 18:26:14 +00:00
2026-09-22 16:23:59 +00:00
2026-10-06 16:56:39 +00:00
2026-09-07 20:25:30 +00:00
2026-10-07 19:28:14 +00:00
2026-09-22 22:47:12 +00:00
2026-10-07 19:28:14 +00:00
2026-09-19 20:24:41 +00:00
2026-09-17 04:53:51 +00:00
2026-10-06 16:56:39 +00:00
2026-10-04 16:57:01 +00:00
2026-08-26 21:39:05 +00:00
2026-09-28 22:20:29 +00:00
2026-09-28 22:20:29 +00:00
2026-09-18 22:40:37 +00:00
2026-09-18 22:40:37 +00:00
2026-09-14 15:30:22 +00:00
2026-09-22 16:23:59 +00:00
2026-09-02 21:50:51 +00:00
2026-10-06 21:29:35 +00:00
2026-09-17 02:46:49 +00:00
2026-10-03 00:02:11 +00:00
2026-09-21 03:38:46 +00:00
2026-09-04 20:38:08 +00:00
2026-09-25 15:15:56 +00:00
2026-09-20 16:52:02 +00:00
2026-09-22 16:23:59 +00:00
2026-09-03 00:45:48 +00:00
2026-09-29 04:13:14 +00:00
2026-10-06 21:29:35 +00:00
2026-10-02 21:42:23 +00:00
2026-09-08 19:06:42 +00:00
2026-09-25 20:46:05 +00:00
2026-09-20 00:04:04 +00:00
2026-09-22 16:07:38 +00:00
2026-09-25 20:46:05 +00:00
2026-10-03 07:05:36 +00:00
2026-10-04 06:28:20 +00:00
2026-09-17 05:26:45 +00:00
2026-10-01 04:24:20 +00:00
2026-10-02 21:40:39 +00:00
2026-09-30 14:37:56 +00:00
2026-09-19 20:24:20 +00:00
2026-10-06 00:16:44 +00:00
2026-09-21 19:55:40 +00:00
2026-09-21 19:55:40 +00:00
2026-10-06 00:16:44 +00:00
2026-10-07 06:07:47 +00:00
2026-09-26 21:57:55 +00:00
2026-09-29 23:09:32 +00:00
2026-09-19 00:14:40 +00:00
2026-09-19 00:14:40 +00:00
2026-09-03 16:21:10 +00:00
2026-10-01 15:57:03 +00:00
2026-09-10 00:57:33 +00:00
2026-09-20 00:06:25 +00:00
2026-10-03 01:09:24 +00:00
2026-09-26 21:58:39 +00:00
2026-09-24 17:21:45 +00:00
2026-09-24 17:55:29 +00:00
2026-09-24 17:55:29 +00:00
2026-09-19 20:24:41 +00:00
2026-10-01 01:35:40 +00:00
2026-10-01 01:35:40 +00:00
2026-10-04 06:46:50 +00:00
2026-10-06 23:04:26 +00:00
2026-10-07 06:07:47 +00:00
2026-08-24 21:39:48 +00:00
2026-10-02 06:50:10 +00:00
2026-10-04 04:25:31 +00:00
2026-10-07 22:10:23 +00:00
2026-09-24 17:43:15 +00:00
2026-09-11 00:59:27 +00:00
2026-10-02 02:27:25 +00:00
2026-10-02 02:27:25 +00:00
2026-10-02 02:27:25 +00:00
2026-10-02 02:27:25 +00:00
2026-09-24 17:55:29 +00:00
2026-10-03 00:02:11 +00:00
2026-10-04 06:46:50 +00:00
2026-10-03 18:44:14 +00:00
2026-09-27 22:14:21 +00:00
2026-10-02 21:42:23 +00:00
2026-08-27 23:10:10 +00:00
2026-09-22 18:17:39 +00:00
2026-10-04 06:46:50 +00:00
2026-10-01 22:17:51 +00:00
2026-10-06 19:29:40 +00:00
2026-10-06 02:14:22 +00:00
2026-10-07 06:07:47 +00:00
2026-09-19 19:14:11 +00:00
2026-09-19 19:14:11 +00:00
2026-10-02 06:50:10 +00:00
2026-10-02 01:34:23 +00:00
2026-10-02 01:34:23 +00:00
2026-09-29 04:13:14 +00:00
2026-09-29 04:13:14 +00:00
2026-09-29 04:13:14 +00:00
2026-09-19 19:21:35 +00:00
2026-10-06 02:14:22 +00:00
2026-09-22 16:35:30 +00:00
2026-09-02 22:45:19 +00:00
2026-10-07 06:07:47 +00:00
2026-09-20 16:16:46 +00:00
2026-09-16 22:14:53 +00:00
2026-10-01 18:05:05 +00:00
2026-09-30 19:22:34 +00:00
2026-09-30 19:22:34 +00:00
2026-10-06 03:35:55 +00:00
2026-09-07 00:56:16 +00:00
2026-09-30 13:16:08 +00:00
2026-09-04 20:38:08 +00:00
2026-08-25 17:17:01 +00:00
2026-08-17 22:44:37 +00:00
2026-09-17 02:46:49 +00:00
2026-09-07 04:59:12 +00:00
2026-09-29 04:13:14 +00:00
2026-09-29 04:13:14 +00:00
2026-10-01 05:25:31 +00:00
2026-08-17 17:10:16 +00:00
2026-09-20 20:20:00 +00:00
2026-10-04 02:32:39 +00:00
2026-09-26 18:59:50 +00:00
2026-10-01 05:18:04 +00:00
2026-09-26 22:50:16 +00:00
2026-09-20 03:02:02 +00:00
2026-10-01 05:18:04 +00:00
2026-10-01 05:18:04 +00:00
2026-09-30 19:00:00 +00:00
2026-09-20 00:06:25 +00:00
2026-10-03 07:05:36 +00:00
2026-09-29 20:46:44 +00:00
2026-10-01 05:18:04 +00:00
2026-10-01 05:18:04 +00:00
2026-09-20 03:02:02 +00:00
2026-09-20 03:02:02 +00:00
2026-09-20 16:16:46 +00:00
2026-09-20 03:02:25 +00:00
2026-09-28 20:59:25 +00:00
2026-09-27 17:59:57 +00:00
2026-09-27 17:59:57 +00:00
2026-10-01 18:05:05 +00:00
2026-08-24 02:46:56 +00:00
2026-10-07 06:07:47 +00:00
2026-10-06 16:56:39 +00:00
2026-10-01 07:08:19 +00:00
2026-09-19 20:22:48 +00:00
2026-10-06 19:51:39 +00:00
2026-09-19 17:46:43 +00:00
2026-09-23 01:20:29 +00:00
2026-10-02 17:21:14 +00:00
2026-09-11 23:28:38 +00:00
2026-09-18 22:51:10 +00:00
2026-10-02 07:21:07 +00:00
2026-09-19 19:11:54 +00:00
2026-09-19 19:21:35 +00:00
2026-09-11 16:20:50 +00:00
2026-09-11 16:20:50 +00:00
2026-09-20 00:04:04 +00:00
2026-10-01 01:35:40 +00:00
2026-10-01 01:35:40 +00:00
2026-09-28 22:40:35 +00:00
2026-09-20 00:04:04 +00:00
2026-10-04 06:46:50 +00:00
2026-10-02 21:42:23 +00:00
2026-09-11 17:43:36 +00:00
2026-09-26 18:59:50 +00:00
2026-10-03 21:20:56 +00:00
2026-09-26 04:17:41 +00:00
2026-10-01 01:35:40 +00:00
2026-09-29 04:13:14 +00:00
2026-09-20 00:04:04 +00:00
2026-09-16 03:43:59 +00:00
2026-09-20 00:04:04 +00:00
2026-09-19 17:03:26 +00:00
2026-09-16 03:43:59 +00:00
2026-08-30 00:42:00 +00:00
2026-09-17 18:20:28 +00:00
2026-09-17 18:20:28 +00:00
2026-10-03 01:09:24 +00:00
2026-09-08 23:37:26 +00:00
2026-09-05 18:06:26 +00:00
2026-09-26 23:17:41 +00:00
2026-09-19 20:22:48 +00:00
2026-09-19 20:24:20 +00:00