Skip to content

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

fix: correct subagent tool to handle missing agent state

Steven Enamakel8d5171c4e545
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
index 9833367ea7..73b6086705 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
@@ -457,7 +457,7 @@ impl SpawnSubagentTool {
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;
}