feat: Full passive task queue integration for parallelization of subagents

This commit is contained in:
2026-02-17 13:42:53 -07:00
parent 44c03ccf4f
commit 60ad83d6d9
3 changed files with 282 additions and 54 deletions
+4 -4
View File
@@ -894,13 +894,13 @@ impl ToolCall {
})
}
_ if cmd_name.starts_with(SUPERVISOR_FUNCTION_PREFIX) => {
supervisor::handle_supervisor_tool(config, &cmd_name, &json_data).unwrap_or_else(
|e| {
supervisor::handle_supervisor_tool(config, &cmd_name, &json_data)
.await
.unwrap_or_else(|e| {
let error_msg = format!("Supervisor tool failed: {e}");
eprintln!("{}", warning_text(&format!("⚠️ {error_msg} ⚠️")));
json!({"tool_call_error": error_msg})
},
)
})
}
_ => match run_llm_function(cmd_name, cmd_args, envs, agent_name) {
Ok(Some(contents)) => serde_json::from_str(&contents)