fix: Clean up orphaned sub-agents when the parent agent
This commit is contained in:
1 parent
a469a6cf06
commit
0ec8cd4d00
2 files changed
+9
-1
No files matched your search
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user