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

This commit is contained in:
2026-02-18 09:12:32 -07:00
parent a469a6cf06
commit 0ec8cd4d00
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)
})
}