jif and GitHub
8d415050fc
Rename multi-agent v2 close_agent to interrupt_agent ( #26994 )
...
## Why
`close_agent` is the wrong model-facing name for the v2 operation after
the residency changes. V2 agents remain reusable by task name, and
residency/unloading owns capacity management; the exposed tool should
describe the action it actually performs: interrupt the target agent's
current turn without making the agent unavailable for future messages or
follow-up tasks.
## What changed
- Rename the multi-agent v2 tool from `close_agent` to
`interrupt_agent`.
- Keep the v1 `close_agent` surface unchanged.
- Update the v2 handler to send `Op::Interrupt`, keep interrupted agents
registered, and reject root/self targets with interrupt-specific errors.
- Route interrupt delivery through the existing dead-thread cleanup path
so stale resident entries do not keep consuming capacity.
- Update tool planning and handler tests for the new v2 surface and
semantics.
## Verification
Added focused coverage in:
- `core/src/tools/spec_plan_tests.rs`
- `core/src/tools/handlers/multi_agents_tests.rs`
2026-06-08 14:46:35 +02:00
..
2026-06-08 14:46:35 +02:00
2026-04-21 10:22:36 -07:00
2026-04-07 00:32:41 +00:00
2026-06-05 18:06:29 -07:00
2026-06-05 14:17:30 -07:00
2026-06-05 10:25:57 +02:00
2026-06-05 09:29:15 -07:00
2026-06-01 23:25:37 -07:00
2026-06-03 10:41:41 -07:00
2026-06-08 14:21:28 +02:00
2026-06-08 14:21:28 +02:00
2026-06-08 14:21:28 +02:00
2026-06-08 14:46:35 +02:00
2026-06-05 11:20:52 -07:00
2026-03-24 18:10:53 -07:00
2026-06-04 15:08:52 -07:00
2026-06-04 15:08:52 -07:00
2026-04-07 21:20:22 +00:00
2026-05-11 16:33:44 -07:00
2026-05-08 12:36:02 -07:00
2026-05-18 09:57:54 -07:00
2026-06-05 10:25:57 +02:00
2026-06-06 01:01:20 +00:00
2026-06-06 01:01:20 +00:00
2026-06-02 21:09:34 +02:00
2026-06-03 15:38:30 +02:00
2026-06-08 14:21:28 +02:00
2026-03-12 08:16:36 -07:00
2026-04-01 23:06:24 -07:00
2026-06-04 13:36:24 -07:00
2026-06-05 10:25:57 +02:00
2026-05-11 19:51:51 -07:00
2026-06-04 13:36:24 -07:00
2026-05-14 15:16:15 +02:00
2026-06-02 13:18:59 -07:00
2026-06-02 17:04:11 +02:00
2026-03-12 00:35:21 -07:00
2026-06-03 18:36:10 +02:00
2026-06-05 14:17:30 -07:00
2026-05-15 15:04:04 -07:00
2026-04-26 15:10:53 -07:00
2026-04-26 15:10:53 -07:00
2026-06-05 11:20:52 -07:00
2026-06-05 11:20:52 -07:00
2026-06-05 11:20:52 -07:00
2026-06-03 10:41:41 -07:00
2026-06-03 10:41:41 -07:00
2026-05-13 11:31:27 +02:00
2026-05-18 10:53:49 -07:00
2026-06-03 15:38:30 +02:00
2026-04-28 13:03:28 +02:00
2026-04-28 19:43:44 -07:00
2026-06-05 14:17:30 -07:00
2026-05-13 11:15:25 -07:00
2026-05-21 17:19:54 +02:00
2026-05-26 20:59:47 -07:00
2026-06-03 15:38:30 +02:00
2026-06-03 15:38:30 +02:00
2026-05-28 10:24:03 -07:00
2026-05-28 10:24:03 -07:00
2026-05-07 10:36:32 +02:00
2026-05-19 11:24:09 +02:00
2026-03-25 11:05:35 -07:00
2026-04-02 23:00:02 -07:00
2026-04-09 10:53:06 -07:00
2026-05-20 17:10:37 -07:00
2026-06-02 13:18:59 -07:00
2026-04-24 17:49:29 -07:00
2026-05-11 11:32:40 -07:00
2026-06-02 12:10:14 +02:00
2026-05-26 10:34:43 +02:00
2026-05-19 12:55:34 -07:00
2026-06-01 04:33:20 +00:00
2026-04-23 10:17:09 -07:00
2026-05-20 16:03:51 -07:00
2026-06-03 15:38:30 +02:00
2026-06-01 18:45:07 +00:00
2026-05-26 11:01:18 +02:00
2026-04-01 23:06:24 -07:00
2026-06-01 23:33:42 +00:00
2026-05-19 11:03:47 -07:00
2026-05-07 11:33:47 +02:00
2026-05-15 10:58:50 -07:00
2026-05-15 10:58:50 -07:00
2026-04-20 22:39:17 -07:00
2026-04-03 00:33:34 -07:00
2026-06-04 13:36:24 -07:00
2026-05-04 11:46:03 -07:00
2026-06-04 22:36:25 -07:00
2026-03-27 19:00:44 -07:00
2026-06-04 22:36:25 -07:00
2026-06-03 15:38:30 +02:00
2026-06-03 10:41:41 -07:00
2026-05-04 11:46:03 -07:00
2026-05-20 15:30:01 +02:00
2026-06-04 09:39:20 -07:00
2026-05-26 20:59:47 -07:00
2026-06-05 14:17:30 -07:00
2026-06-05 14:17:30 -07:00
2026-05-27 15:49:08 +02:00
2026-05-27 15:49:08 +02:00
2026-06-05 17:31:22 +00:00
2026-06-05 17:31:22 +00:00
2026-06-02 12:46:14 -07:00
2026-06-02 12:46:14 -07:00
2026-06-05 11:27:10 -07:00
2026-06-05 11:27:10 -07:00
2026-04-20 22:39:17 -07:00
2026-04-20 22:39:17 -07:00
2026-05-14 16:54:59 -07:00
2026-05-14 16:54:59 -07:00
2026-01-30 16:37:56 -08:00
2026-05-28 15:26:55 -07:00
2026-05-28 15:26:55 -07:00
2026-05-22 12:13:52 +02:00
2026-05-29 11:01:44 -07:00