rhan-oai
37f199dab1
Add host-reserved V2 child creation APIs ( #57586 )
...
## What changed
- Add `CodexThread::create_child` to create an idle child from a live tool invocation using a host-reserved thread ID and controller.
- Add `prepare_child` and `ThreadManager::create_prepared_child` to capture inherited settings and fresh or forked history, then start the child on another manager even after the parent shuts down. Reject detached preparation when live bindings cannot be transferred.
- Add opt-in `HostToolInvocationLookup` to track live calls and reject duplicate active call IDs within a turn. Revoke invocation access when dispatch ends and clean up provisional children when startup fails or is cancelled.
## Testing
Add tests for invocation lifetime and call ID reservation, inherited policy and live bindings, detached startup with fresh and full history, and cancellation cleanup.
GitOrigin-RevId: 71f17ecb4cd7636517e675df59289a8e8c7105b8
2026-10-27 23:02:27 +00:00
..
2026-10-05 18:52:51 +00:00
2026-10-14 06:03:02 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-21 18:37:30 +00:00
2026-10-26 22:13:14 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-09-10 21:41:39 +00:00
2026-10-05 18:52:51 +00:00
2026-09-12 05:04:11 +00:00
2026-09-12 05:04:11 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-04-12 11:59:09 -07:00
2026-10-05 18:52:51 +00:00
2026-10-26 21:55:00 +00:00
2026-10-26 21:55:00 +00:00
2026-10-27 19:00:03 +00:00
2026-10-19 20:30:44 +00:00
2026-10-08 17:25:39 +00:00
2026-10-13 10:42:06 +00:00
2026-09-30 17:33:59 +00:00
2026-10-22 12:46:24 +00:00
2026-10-06 10:39:16 +00:00
2026-10-05 18:52:51 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-27 16:16:17 +00:00
2026-10-27 00:52:31 +00:00
2026-10-27 00:52:31 +00:00
2026-10-22 12:46:24 +00:00
2026-10-27 22:26:12 +00:00
2026-10-26 21:20:52 +00:00
2026-10-26 21:20:52 +00:00
2026-10-22 12:46:24 +00:00
2026-10-27 14:14:16 +00:00
2026-10-22 12:46:24 +00:00
2026-10-05 18:52:51 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-05 18:52:51 +00:00
2026-10-23 00:46:28 +00:00
2026-10-22 01:54:51 +00:00
2026-10-22 01:54:51 +00:00
2026-10-27 19:50:41 +00:00
2026-10-22 12:46:24 +00:00
2026-10-27 14:48:48 +00:00
2026-10-27 14:48:48 +00:00
2026-10-27 13:21:20 +00:00
2026-10-19 20:01:37 +00:00
2026-10-20 11:56:17 +00:00
2026-10-06 19:30:57 +00:00
2026-10-27 13:02:57 +00:00
2026-10-03 07:37:00 +00:00
2026-10-05 18:52:51 +00:00
2026-10-23 18:48:10 +00:00
2026-10-07 15:47:21 +00:00
2026-10-08 22:01:24 +00:00
2026-10-10 01:14:28 +00:00
2026-10-08 22:01:24 +00:00
2026-10-14 05:36:44 +00:00
2026-10-26 22:05:23 +00:00
2026-10-08 22:01:24 +00:00
2026-10-08 22:01:24 +00:00
2026-10-17 04:02:21 +00:00
2026-10-27 14:14:16 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-06 03:27:04 +00:00
2026-10-06 03:27:04 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-21 10:40:59 +00:00
2026-10-22 12:46:24 +00:00
2026-10-26 19:37:32 +00:00
2026-10-16 16:40:17 +00:00
2026-10-16 16:40:17 +00:00
2026-10-05 18:52:51 +00:00
2026-10-14 05:36:44 +00:00
2026-10-22 22:44:48 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-05 18:52:51 +00:00
2026-10-06 03:27:04 +00:00
2026-10-06 10:56:45 +00:00
2026-10-09 11:08:24 +00:00
2026-10-08 00:09:03 +00:00
2026-10-22 12:46:24 +00:00
2026-10-06 10:39:16 +00:00
2026-10-07 01:28:59 +00:00
2026-10-27 23:02:27 +00:00
2026-10-27 23:02:27 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-05 18:52:51 +00:00
2026-10-22 12:46:24 +00:00
2026-10-27 16:16:17 +00:00
2026-10-26 21:20:21 +00:00
2026-10-22 12:46:24 +00:00
2026-10-22 12:46:24 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-27 22:59:22 +00:00
2026-10-27 22:01:13 +00:00
2026-10-27 19:11:56 +00:00
2026-10-27 19:11:56 +00:00
2026-10-26 21:46:26 +00:00
2026-10-26 21:46:26 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-17 04:02:21 +00:00
2026-09-04 10:22:43 +00:00