fix: Clean up orphaned sub-agents when the parent agent

This commit is contained in:
2026-02-18 09:12:32 -07:00
parent 948466d771
commit 7884adc7c1
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -305,6 +305,10 @@ fn run_child_agent(
input = input.merge_tool_results(output, tool_results);
}
if let Some(ref supervisor) = child_config.read().supervisor {
supervisor.read().cancel_all();
}
Ok(accumulated_output)
})
}