jif
e389b2444c
Add configured thread environment inheritance for subagents ( #55375 )
...
## Why
Temporary environment attachments for a parent turn should not become a
subagent's persistent environments. Children also need to retain their
configured executor bindings when their runtime is evicted and reloaded.
## What changed
- Add the disabled-by-default `subagent_thread_environments` feature flag.
When enabled, both subagent implementations inherit configured thread
environments captured with the invoking step, excluding turn-only attachments.
- Track configured bindings separately from active turn attachments, preserving
pending configuration ownership and sharing completed executor startup.
- Retain configured selections and bindings across idle eviction. Reload children
using retained bindings when the parent changes workspace, while continuing to
validate current parent roots and permissions for matching workspaces.
## Testing
Extend regression coverage for configured, empty, forked, pending, and legacy
inheritance; temporary attachment removal across eviction; and reload behavior
with changed workspaces, deferred startup, and restricted permissions.
GitOrigin-RevId: 15692ecd99deb38002014b44fd859d793bd54373
2026-10-19 20:30:44 +00:00
..
2026-10-19 17:37:49 +00:00
2026-10-19 20:30:44 +00:00
2026-10-19 20:30:44 +00:00
2026-10-06 01:39:50 +00:00
2026-10-15 20:57:39 +00:00
2026-09-11 22:55:38 +00:00
2026-10-18 01:58:02 +00:00
2026-09-24 20:59:51 +00:00
2026-10-19 20:30:44 +00:00
2026-10-01 20:17:34 +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-10-03 18:15:13 +00:00
2026-10-03 18:15:13 +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-08 22:27:00 +00:00
2026-08-13 00:00:16 +00:00
2026-09-23 00:47:07 +00:00
2026-10-06 19:30:57 +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-09-15 18:23:08 +00:00
2026-10-19 19:55:39 +00:00
2026-10-05 18:52:51 +00:00
2026-10-10 01:25:00 +00:00
2026-10-13 13:36:24 +00:00
2026-09-30 14:37:56 +00:00
2026-10-16 16:28:53 +00:00
2026-08-13 00:00:16 +00:00
2026-09-21 22:49:17 +00:00
2026-10-17 04:02:21 +00:00
2026-09-14 15:06:28 +00:00
2026-08-25 23:42:50 +00:00
2026-10-06 17:11:07 +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-10-13 22:21:31 +00:00
2026-10-19 19:24:26 +00:00
2026-10-19 20:01:37 +00:00
2026-10-17 04:02:21 +00:00
2026-10-08 16:27:10 +00:00
2026-10-06 16:56:39 +00:00
2026-10-08 16:19:09 +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-10-14 19:47:50 +00:00
2026-09-19 01:21:32 +00:00
2026-10-19 19:33:11 +00:00
2026-10-15 19:51:22 +00:00
2026-10-01 15:57:03 +00:00
2026-09-30 11:59:13 +00:00
2026-09-18 22:42:46 +00:00
2026-10-06 16:56:39 +00:00
2026-09-24 11:19:16 +00:00
2026-10-17 04:02:21 +00:00
2026-10-19 18:49:48 +00:00
2026-10-06 01:39:50 +00:00
2026-10-08 20:04:38 +00:00
2026-10-13 15:05:16 +00:00
2026-10-09 20:14:04 +00:00
2026-10-07 13:05:06 +00:00
2026-10-05 22:17:02 +00:00
2026-10-15 12:56:39 +00:00
2026-10-06 17:11:07 +00:00
2026-10-13 23:29:53 +00:00
2026-10-07 15:47:21 +00:00
2026-10-14 02:01:49 +00:00
2026-10-15 11:22:45 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 20:01:37 +00:00
2026-10-01 16:14:27 +00:00
2026-10-15 11:24:07 +00:00
2026-10-16 12:37:14 +00:00
2026-10-10 01:25:00 +00:00
2026-09-29 16:53:11 +00:00
2026-10-08 18:42:58 +00:00
2026-10-19 11:40:15 +00:00
2026-10-08 18:42:58 +00:00
2026-10-18 22:43:56 +00:00
2026-10-10 01:25:00 +00:00
2026-09-08 20:37:30 +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-06 01:39:50 +00:00
2026-10-06 16:56:39 +00:00
2026-10-14 02:01:49 +00:00
2026-09-29 13:08:37 +00:00
2026-10-08 21:01:06 +00:00
2026-10-06 01:39:50 +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-06 17:11:07 +00:00
2026-10-06 01:39:50 +00:00
2026-10-07 07:57:14 +00:00
2026-10-19 11:40:15 +00:00
2026-10-13 13:59:41 +00:00
2026-10-06 19:30:57 +00:00
2026-10-06 01:39:50 +00:00
2026-10-14 05:36:44 +00:00
2026-10-08 16:19:09 +00:00
2026-09-23 22:10:04 +00:00
2026-08-13 00:00:16 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-17 23:22:14 +00:00
2026-10-06 17:11:07 +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-09-22 21:57:52 +00:00
2026-10-14 20:06:28 +00:00
2026-10-06 17:10:43 +00:00
2026-09-24 20:28:31 +00:00
2026-10-10 01:25:00 +00:00
2026-10-06 17:11:07 +00:00
2026-10-13 12:42:53 +00:00
2026-10-13 15:24:00 +00:00
2026-10-19 19:55:39 +00:00
2026-10-06 17:11:07 +00:00
2026-10-13 19:28:21 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 17:11:07 +00:00
2026-10-10 01:25:00 +00:00
2026-09-15 04:20:38 +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-13 22:21:31 +00:00
2026-10-13 22:21:31 +00:00
2026-10-19 14:34:11 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 17:02:20 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 20:30:44 +00:00
2026-10-06 17:11:07 +00:00
2026-08-13 00:00:16 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-09-29 13:08:37 +00:00
2026-10-08 02:06:58 +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-09-10 03:18:28 +00:00
2026-10-06 22:39:06 +00:00
2026-10-14 18:02:25 +00:00
2026-10-06 18:17:48 +00:00
2026-10-10 01:25:00 +00:00
2026-10-19 20:01:37 +00:00
2026-09-11 21:32:04 +00:00
2026-09-30 11:59:13 +00:00
2026-08-13 00:00:16 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 20:30:44 +00:00
2026-10-09 13:15:39 +00:00
2026-10-13 10:42:06 +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-15 22:25:58 +00:00
2026-10-05 22:17:02 +00:00
2026-09-29 13:08:37 +00:00
2026-10-06 19:30:57 +00:00
2026-10-01 16:14:27 +00:00
2026-10-07 19:42:35 +00:00
2026-10-13 18:08:10 +00:00
2026-10-07 15:47:21 +00:00
2026-10-08 22:01:24 +00:00
2026-10-19 20:01:37 +00:00
2026-10-08 03:20:54 +00:00
2026-10-06 03:27:04 +00:00
2026-10-03 06:42:48 +00:00
2026-10-14 05:36:44 +00:00
2026-09-22 21:57:52 +00:00
2026-10-09 11:08:24 +00:00
2026-09-22 05:53:29 +00:00
2026-10-02 23:26:27 +00:00
2026-09-16 22:25:54 +00:00
2026-10-12 18:54:22 +00:00
2026-10-06 01:39:50 +00:00
2026-10-19 17:37:49 +00:00
2026-10-03 18:15:13 +00:00
2026-10-06 01:39:50 +00:00
2026-10-19 17:37:49 +00:00
2026-10-06 17:10:43 +00:00
2026-10-11 15:48:35 +00:00
2026-10-19 19:55:39 +00:00
2026-10-09 17:56:26 +00:00
2026-10-19 17:02:20 +00:00
2026-10-10 01:25:00 +00:00
2026-10-01 00:57:53 +00:00
2026-09-22 11:10:29 +00:00
2026-10-06 17:11:07 +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-19 20:01:37 +00:00
2026-10-02 23:26:27 +00:00
2026-10-02 23:26:27 +00:00
2026-10-06 01:39:50 +00:00
2026-10-19 20:01:37 +00:00
2026-08-28 09:48:13 +00:00
2026-10-19 11:40:15 +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-06 17:11:07 +00:00
2026-10-07 23:11:18 +00:00
2026-10-14 21:06:42 +00:00
2026-10-06 17:11:07 +00:00
2026-09-29 02:40:51 +00:00
2026-10-14 06:03:02 +00:00
2026-10-06 16:56:39 +00:00
2026-09-04 20:38:08 +00:00
2026-10-08 16:19:09 +00:00
2026-09-28 15:58:17 +00:00
2026-10-15 14:41:16 +00:00
2026-10-14 23:02:21 +00:00
2026-08-28 15:44:48 +00:00
2026-10-08 13:45:19 +00:00
2026-08-10 19:26:52 +00:00
2026-10-01 15:57:03 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 17:26:19 +00:00
2026-09-22 06:24:49 +00:00
2026-09-24 20:28:31 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 19:24:26 +00:00
2026-09-25 19:14:31 +00:00
2026-08-20 06:29:32 +00:00