Skip to content

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

fix(agent): handle missing subagent spawn result gracefully

Steven Enamakel5bad5179cbc1
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 01bd80acd6..d099e9e17f 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
@@ -371,7 +371,7 @@ impl SpawnAsyncSubagentTool {
prompt: prompt.clone(),
worker_thread_id: worker_thread_id.clone(),
display_name: Some(definition.display_name().to_string()),
- parent_call_id: None,
+ parent_call_id: crate::tools::host_extensions::tool_call_id(tool_context),
})
.await;
}