jif
e73da8bd1b
Preserve base and developer instructions in host child preparation ( #62128 )
...
## Why
Hosts preparing a child thread lacked the parent's effective base
instructions and the developer instructions a native subagent would inherit.
Hosts also need the base instruction provenance to preserve custom text
while letting model-owned instructions resolve for the child's model.
## What changed
Include effective base instruction text and provenance in
`PreparedChildContext`. Share developer instruction selection with native
subagent creation so host preparation uses the configured V2 subagent
override when present and falls back to the parent turn's developer
instructions otherwise.
## Testing
Add integration coverage that starts a child on a different model and
checks that custom base instructions persist, model-owned instructions
resolve for the child model, and the V2 override takes precedence over
the parent developer instructions.
GitOrigin-RevId: 0e151e343e58d995c8901a9ba819cb7f60d248f5
2026-11-17 23:31:58 +00:00
..
2026-11-17 15:55:01 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 22:41:50 +00:00
2026-11-16 12:03:11 +00:00
2026-11-17 23:15:04 +00:00
2026-11-17 23:15:04 +00:00
2026-11-17 03:17:05 +00:00
2026-11-10 01:31:19 +00:00
2026-11-17 21:10:09 +00:00
2026-11-14 02:23:37 +00:00
2026-11-07 10:41:36 +00:00
2026-11-02 17:05:56 +00:00
2026-11-17 13:38:34 +00:00
2026-11-07 10:41:36 +00:00
2026-11-13 04:48:28 +00:00
2026-11-05 22:03:29 +00:00
2026-11-17 16:42:48 +00:00
2026-11-17 03:17:05 +00:00
2026-11-17 16:42:48 +00:00
2026-11-05 05:09:32 +00:00
2026-11-05 05:09:32 +00:00
2026-11-16 17:47:49 +00:00
2026-11-16 17:47:49 +00:00
2026-11-16 17:47:49 +00:00
2026-11-16 17:47:49 +00:00
2026-11-16 18:54:05 +00:00
2026-11-17 16:56:34 +00:00
2026-11-17 21:10:09 +00:00
2026-11-10 03:02:25 +00:00
2026-11-13 01:08:55 +00:00
2026-11-07 05:59:44 +00:00
2026-11-17 23:31:58 +00:00
2026-11-12 22:43:14 +00:00
2026-11-17 19:46:24 +00:00
2026-11-12 23:51:52 +00:00
2026-11-03 23:49:01 +00:00
2026-11-13 20:23:24 +00:00
2026-11-16 00:02:00 +00:00
2026-11-17 13:52:56 +00:00
2026-11-13 20:24:37 +00:00
2026-11-16 18:19:16 +00:00
2026-11-05 00:55:46 +00:00
2026-11-17 23:15:04 +00:00
2026-11-12 23:51:52 +00:00
2026-11-17 03:48:25 +00:00
2026-11-14 02:45:51 +00:00
2026-11-06 00:37:27 +00:00
2026-11-10 08:52:35 +00:00
2026-11-17 01:59:51 +00:00
2026-11-17 16:16:36 +00:00
2026-11-14 06:14:36 +00:00
2026-11-17 21:40:36 +00:00
2026-11-13 05:16:33 +00:00
2026-11-12 04:32:34 +00:00
2026-11-17 19:10:29 +00:00
2026-11-17 19:23:05 +00:00
2026-11-17 01:59:51 +00:00
2026-11-16 20:53:56 +00:00
2026-11-12 22:41:50 +00:00
2026-11-02 20:34:35 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 01:11:13 +00:00
2026-11-17 13:52:56 +00:00
2026-11-17 21:10:09 +00:00
2026-11-17 21:40:36 +00:00
2026-11-17 18:24:49 +00:00
2026-11-17 22:00:20 +00:00
2026-11-11 18:58:21 +00:00
2026-11-17 07:10:46 +00:00
2026-11-17 18:42:08 +00:00
2026-11-17 05:35:07 +00:00
2026-11-07 10:41:36 +00:00
2026-11-17 13:52:56 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 23:15:54 +00:00
2026-11-12 23:51:52 +00:00
2026-11-17 12:24:05 +00:00
2026-11-16 03:23:10 +00:00
2026-11-17 06:03:45 +00:00
2026-11-16 22:26:31 +00:00
2026-11-17 17:29:51 +00:00
2026-11-14 23:52:50 +00:00
2026-11-17 23:18:54 +00:00
2026-11-17 04:08:00 +00:00
2026-11-17 20:05:26 +00:00
2026-11-16 23:26:42 +00:00
2026-11-13 18:51:30 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 23:51:52 +00:00
2026-11-03 15:02:57 +00:00
2026-11-17 18:45:10 +00:00
2026-11-17 22:45:51 +00:00
2026-11-12 23:53:50 +00:00
2026-11-13 22:18:01 +00:00
2026-11-17 15:55:01 +00:00
2026-11-17 02:43:52 +00:00
2026-11-17 15:55:01 +00:00
2026-11-12 23:51:52 +00:00