Test
ae8059ca24
fix(delegate): move _saved_tool_names assignment to correct scope
...
The merge at e7844e9c re-introduced a line in _build_child_agent() that
references _saved_tool_names — a variable only defined in _run_single_child().
This caused NameError on every delegate_task call, completely breaking
subagent delegation.
Moves the child._delegate_saved_tool_names assignment to _run_single_child()
where _saved_tool_names is actually defined, keeping the save/restore in the
same scope as the try/finally block.
Adds two regression tests from PR #2038 (YanSte).
Also fixes the same issue reported in PR #2048 (Gutslabs).
Co-authored-by: Yannick Stephan <yannick.stephan@gmail.com>
Co-authored-by: Guts <gutslabs@users.noreply.github.com>
2026-03-19 09:26:05 -07:00
..
2026-02-26 03:20:08 +03:00
2026-03-17 02:22:12 -07:00
2026-03-14 11:28:26 -07:00
2026-03-17 02:02:57 -07:00
2026-03-13 22:14:00 -07:00
2026-02-27 03:29:26 -05:00
2026-03-13 21:32:53 -07:00
2026-03-14 21:41:12 -07:00
2026-03-14 00:17:04 -07:00
2026-02-26 13:55:54 +03:00
2026-03-17 01:40:02 -07:00
2026-03-05 13:12:41 -08:00
2026-03-02 04:34:21 -08:00
2026-03-19 09:26:05 -07:00
2026-03-17 04:46:15 -07:00
2026-03-10 20:45:13 -07:00
2026-03-08 16:47:20 -07:00
2026-03-12 01:23:28 -07:00
2026-03-13 22:14:00 -07:00
2026-03-17 02:22:12 -07:00
2026-03-14 11:27:02 -07:00
2026-02-26 03:20:08 +03:00
2026-03-04 18:34:16 +03:00
2026-03-01 11:53:50 +03:00
2026-03-16 00:23:47 -07:00
2026-03-13 02:51:51 -07:00
2026-03-17 02:20:42 -07:00
2026-03-15 01:20:42 +05:30
2026-03-17 03:48:44 -07:00
2026-03-14 05:44:00 -07:00
2026-03-18 03:04:17 -07:00
2026-03-14 11:36:47 -07:00
2026-03-14 07:53:56 -07:00
2026-03-16 05:20:56 -07:00
2026-03-17 02:34:35 -07:00
2026-03-14 03:54:46 -07:00
2026-03-17 03:52:15 -07:00
2026-03-18 01:19:05 +03:00
2026-03-15 20:21:21 -07:00
2026-03-10 17:09:51 -07:00
2026-03-17 02:02:57 -07:00
2026-03-17 15:38:37 +00:00
2026-03-14 11:36:47 -07:00
2026-03-16 19:01:39 +03:00
2026-03-05 18:51:43 -08:00
2026-03-04 05:30:43 -08:00
2026-03-02 02:00:09 -08:00
2026-03-17 16:32:25 -07:00
2026-03-14 23:15:04 -07:00
2026-03-17 02:13:34 -07:00
2026-03-07 03:58:32 +03:00
2026-03-18 03:17:37 -07:00
2026-03-15 21:13:40 -07:00
2026-03-04 17:23:23 +03:00
2026-03-02 22:53:21 +03:00
2026-03-14 06:04:39 -07:00
2026-03-13 23:39:51 -07:00
2026-03-16 23:39:41 -07:00
2026-03-08 23:07:38 +03:00
2026-03-17 10:30:58 -07:00
2026-03-17 10:30:58 -07:00
2026-03-14 20:22:13 -07:00
2026-03-14 14:27:21 +03:00
2026-03-14 14:27:21 +03:00
2026-03-17 04:28:03 -07:00
2026-03-17 04:28:03 -07:00
2026-03-17 04:02:02 -07:00
2026-03-01 01:54:27 +03:00
2026-02-26 13:30:55 +03:00
2026-03-17 02:22:12 -07:00