ioanbudea-OAI
01192c6e19
Enforce session ownership in V1 multi-agent tools ( #65287 )
...
## Why
V1 tools could use a thread ID to reach agents in another session. A
thread ID can also resolve to a different runtime after a thread is
unloaded and reloaded.
## What changed
- Check session ownership before sending input, interrupting, waiting on,
closing, or resuming a V1 agent. Keep live operations bound to the
runtime that passed the check.
- Check ownership in saved rollouts before resuming agents and their
descendants. Follow the recorded parent chain for legacy rollouts that
lack a session ID. Release the agent slot when closing a known ephemeral
agent that has already been unloaded.
- Preserve failed `wait` calls in thread history and show the failure in
the TUI without listing rejected targets as completed agents.
## Testing
Add regression coverage for cross-session input, close, and resume
requests, slot reuse after closing an unloaded ephemeral agent, legacy
session recovery, and failed wait history and display.
GitOrigin-RevId: 4712a53315d24d5658d746ed277738e00a4e2dac
2026-12-02 16:21:14 +00:00
..
2026-11-30 21:02:08 +00:00
2026-12-02 11:39:41 +00:00
2026-11-13 18:50:28 +00:00
2026-12-02 11:38:59 +00:00
2026-10-01 05:16:40 +00:00
2026-12-02 06:30:47 +00:00
2026-12-02 10:19:11 +00:00
2026-12-01 20:45:18 +00:00
2026-12-01 20:45:18 +00:00
2026-11-21 05:56:42 +00:00
2026-11-26 18:19:55 +00:00
2026-11-23 21:41:05 +00:00
2026-12-02 10:19:11 +00:00
2026-12-02 03:58:37 +00:00
2026-11-30 00:39:15 +00:00
2026-10-20 15:15:24 +00:00
2026-12-01 20:29:37 +00:00
2026-12-02 06:30:47 +00:00
2026-12-02 06:30:47 +00:00
2026-11-21 21:51:31 +00:00
2026-12-01 18:23:08 +00:00
2026-11-25 02:00:08 +00:00
2026-12-02 03:58:37 +00:00
2026-12-02 03:46:24 +00:00
2026-12-01 17:37:47 +00:00
2026-11-30 17:40:02 +00:00
2026-11-17 23:18:54 +00:00
2026-11-25 01:42:33 +00:00
2026-12-02 16:21:14 +00:00
2026-12-02 07:59:18 +00:00
2026-11-30 17:40:02 +00:00
2026-11-29 01:29:23 +00:00
2026-11-26 03:30:34 +00:00
2026-11-03 23:36:55 +00:00
2026-12-02 10:36:43 +00:00
2026-11-25 06:40:44 +00:00
2026-11-23 07:31:49 +00:00
2026-11-22 19:23:56 +00:00
2026-12-01 20:29:37 +00:00
2026-12-01 23:13:10 +00:00
2026-12-02 11:39:41 +00:00
2026-11-30 19:39:47 +00:00
2026-11-30 21:19:57 +00:00
2026-11-30 21:19:57 +00:00
2026-09-22 16:23:59 +00:00
2026-11-30 17:40:02 +00:00
2026-11-12 19:43:12 +00:00
2026-11-18 22:13:26 +00:00
2026-12-02 03:33:04 +00:00
2026-12-02 07:29:37 +00:00
2026-11-13 04:51:06 +00:00
2026-11-12 23:08:59 +00:00
2026-12-02 11:38:59 +00:00
2026-12-02 10:36:43 +00:00
2026-09-28 22:20:29 +00:00
2026-09-28 22:20:29 +00:00
2026-10-26 22:12:07 +00:00
2026-11-11 09:01:04 +00:00
2026-09-22 16:23:59 +00:00
2026-12-02 07:29:37 +00:00
2026-10-14 17:36:18 +00:00
2026-12-01 20:45:18 +00:00
2026-12-01 19:17:41 +00:00
2026-11-25 01:42:33 +00:00
2026-09-21 03:38:46 +00:00
2026-12-01 20:45:18 +00:00
2026-09-22 16:23:59 +00:00
2026-12-01 20:45:18 +00:00
2026-11-30 18:05:37 +00:00
2026-11-30 18:05:37 +00:00
2026-10-02 21:42:23 +00:00
2026-12-01 14:58:43 +00:00
2026-12-01 20:29:37 +00:00
2026-12-02 03:58:37 +00:00
2026-10-20 03:11:07 +00:00
2026-12-02 03:58:37 +00:00
2026-12-01 23:03:41 +00:00
2026-12-01 23:03:41 +00:00
2026-12-01 18:08:05 +00:00
2026-11-19 12:28:34 +00:00
2026-10-13 16:57:54 +00:00
2026-11-24 00:14:14 +00:00
2026-11-20 23:24:10 +00:00
2026-11-25 01:42:33 +00:00
2026-11-25 01:14:25 +00:00
2026-11-24 23:38:37 +00:00
2026-09-21 19:55:40 +00:00
2026-09-21 19:55:40 +00:00
2026-11-30 00:39:15 +00:00
2026-12-01 23:22:59 +00:00
2026-11-23 21:41:05 +00:00
2026-11-30 16:25:43 +00:00
2026-11-04 16:46:21 +00:00
2026-11-04 16:46:21 +00:00
2026-10-01 15:57:03 +00:00
2026-11-26 20:37:00 +00:00
2026-11-26 00:30:45 +00:00
2026-11-26 00:30:45 +00:00
2026-11-22 21:20:40 +00:00
2026-12-02 09:55:35 +00:00
2026-09-26 21:58:39 +00:00
2026-11-15 20:50:29 +00:00
2026-10-23 18:39:28 +00:00
2026-10-20 15:15:24 +00:00
2026-11-09 21:30:05 +00:00
2026-12-01 20:29:37 +00:00
2026-11-13 21:50:54 +00:00
2026-09-24 17:55:29 +00:00
2026-12-02 10:19:11 +00:00
2026-11-27 20:48:50 +00:00
2026-10-13 19:55:22 +00:00
2026-12-02 06:30:47 +00:00
2026-12-02 06:30:47 +00:00
2026-12-02 06:30:47 +00:00
2026-12-01 19:17:41 +00:00
2026-12-02 06:11:22 +00:00
2026-11-16 21:49:32 +00:00
2026-10-19 22:21:13 +00:00
2026-12-01 16:51:26 +00:00
2026-12-02 10:19:11 +00:00
2026-12-01 17:07:18 +00:00
2026-09-24 17:43:15 +00:00
2026-10-30 04:01:34 +00:00
2026-10-02 02:27:25 +00:00
2026-11-30 00:39:15 +00:00
2026-11-07 17:31:27 +00:00
2026-09-24 17:55:29 +00:00
2026-11-27 04:03:51 +00:00
2026-11-28 00:05:22 +00:00
2026-11-28 00:05:22 +00:00
2026-10-15 15:08:28 +00:00
2026-11-26 03:30:34 +00:00
2026-11-30 22:39:43 +00:00
2026-12-02 03:58:37 +00:00
2026-11-24 18:50:19 +00:00
2026-11-23 21:39:43 +00:00
2026-12-02 16:21:14 +00:00
2026-12-01 19:17:41 +00:00
2026-12-01 19:17:41 +00:00
2026-12-02 03:33:04 +00:00
2026-11-26 17:55:06 +00:00
2026-10-26 21:28:54 +00:00
2026-10-26 21:28:54 +00:00
2026-12-01 21:01:05 +00:00
2026-11-25 02:31:54 +00:00
2026-12-02 06:57:24 +00:00
2026-11-22 21:20:40 +00:00
2026-09-29 04:13:14 +00:00
2026-11-24 09:35:28 +00:00
2026-10-30 06:45:04 +00:00
2026-10-30 06:45:04 +00:00
2026-11-06 07:43:44 +00:00
2026-11-24 16:14:00 +00:00
2026-12-02 10:36:43 +00:00
2026-11-26 19:16:52 +00:00
2026-10-01 18:05:05 +00:00
2026-09-30 19:22:34 +00:00
2026-11-07 08:11:37 +00:00
2026-11-30 22:25:03 +00:00
2026-11-10 04:56:49 +00:00
2026-12-01 19:17:41 +00:00
2026-11-04 06:15:53 +00:00
2026-11-30 17:40:02 +00:00
2026-11-02 23:19:03 +00:00
2026-12-01 19:17:41 +00:00
2026-11-30 00:39:15 +00:00
2026-11-30 22:08:33 +00:00
2026-12-01 17:07:18 +00:00
2026-11-27 23:37:54 +00:00
2026-11-24 18:50:19 +00:00
2026-11-30 21:02:08 +00:00
2026-12-01 20:29:37 +00:00
2026-12-01 20:29:37 +00:00
2026-11-26 02:35:01 +00:00
2026-12-01 21:39:35 +00:00
2026-11-30 17:14:19 +00:00
2026-12-02 03:58:37 +00:00
2026-11-13 21:52:22 +00:00
2026-11-13 21:52:22 +00:00
2026-11-25 00:57:54 +00:00
2026-12-02 10:19:11 +00:00
2026-12-02 10:19:11 +00:00
2026-09-30 19:00:00 +00:00
2026-12-02 06:30:47 +00:00
2026-12-02 03:58:37 +00:00
2026-12-02 06:57:24 +00:00
2026-12-02 11:36:47 +00:00
2026-12-01 23:03:41 +00:00
2026-12-01 23:03:41 +00:00
2026-12-02 10:19:11 +00:00
2026-12-02 10:19:11 +00:00
2026-11-23 01:51:00 +00:00
2026-11-30 17:40:02 +00:00
2026-11-17 13:10:04 +00:00
2026-11-19 00:59:23 +00:00
2026-11-29 01:29:23 +00:00
2026-11-17 08:08:51 +00:00
2026-12-02 10:36:43 +00:00
2026-10-19 21:43:19 +00:00
2026-11-26 19:16:52 +00:00
2026-11-26 19:16:52 +00:00
2026-10-01 18:05:05 +00:00
2026-11-26 03:30:34 +00:00
2026-12-02 04:42:32 +00:00
2026-12-02 04:42:32 +00:00
2026-11-11 18:59:32 +00:00
2026-11-18 22:39:26 +00:00
2026-12-02 10:36:43 +00:00
2026-12-02 10:36:43 +00:00
2026-10-09 00:04:15 +00:00
2026-12-02 10:19:11 +00:00
2026-12-02 10:36:43 +00:00
2026-11-27 20:48:50 +00:00
2026-10-14 03:52:30 +00:00
2026-11-25 01:14:25 +00:00
2026-11-26 19:35:46 +00:00
2026-11-30 00:39:15 +00:00
2026-11-26 22:54:05 +00:00
2026-10-02 07:21:07 +00:00
2026-11-24 18:50:19 +00:00
2026-10-10 22:28:01 +00:00
2026-11-19 19:04:56 +00:00
2026-11-18 18:28:58 +00:00
2026-11-18 18:28:58 +00:00
2026-11-18 22:13:26 +00:00
2026-11-14 00:05:32 +00:00
2026-12-02 10:19:11 +00:00
2026-12-02 10:19:11 +00:00
2026-11-22 19:23:56 +00:00
2026-12-01 20:29:37 +00:00
2026-12-01 20:29:37 +00:00
2026-12-02 10:19:11 +00:00
2026-12-01 02:41:35 +00:00
2026-12-01 20:29:37 +00:00
2026-10-27 08:04:25 +00:00
2026-12-02 10:19:11 +00:00
2026-12-02 11:39:41 +00:00
2026-10-11 15:50:16 +00:00
2026-10-01 01:35:40 +00:00
2026-11-30 19:39:47 +00:00
2026-11-30 19:39:47 +00:00
2026-09-29 04:13:14 +00:00
2026-12-02 03:58:37 +00:00
2026-10-26 19:29:16 +00:00
2026-12-02 03:58:37 +00:00
2026-10-20 15:15:24 +00:00
2026-10-20 15:15:24 +00:00
2026-11-22 16:22:42 +00:00
2026-11-23 18:26:30 +00:00
2026-11-14 00:08:20 +00:00
2026-11-14 00:08:20 +00:00
2026-11-24 03:13:52 +00:00