Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(agent): add async subagent spawn execution tool

Steven Enamakel43b92091c65e
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index 29c0314445..f3e6748137 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -393,7 +393,7 @@ impl SpawnAsyncSubagentTool {
// the off-task delivery subscriber resolves.
let detached_run_context = detached_parent.data.child();
let mut abort_report = AbortReport::arm(progress_sink.clone(), &definition.id, &task_id);
- let join = crate::core::runtime::DispatchCtx::ambient().spawn(crate::agent::turn_origin::propagate(
+ let join = background_dispatch.spawn(crate::agent::turn_origin::propagate(
async move {
let options = SubagentRunOptions {
skill_filter_override: None,