The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix: validate subagent arguments before context
Steven Enamakel6aaee58ba6d0
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.rsindex c71989ce0f..a7601c5b67 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@@ -136,11 +136,6 @@ impl SpawnSubagentTool {>,>,) -> anyhow::Result<ToolResult> {- let Some(live_parent) = live_parent else {- return Ok(ToolResult::error(- "spawn_subagent requires a live harness run context.",- ));- };// ── Argument extraction with back-compat ───────────────────────let agent_id = args.get("agent_id")@@ -197,6 +192,11 @@ impl SpawnSubagentTool {if prompt.is_empty() {return Ok(ToolResult::error("spawn_subagent: `prompt` is required"));}+ let Some(live_parent) = live_parent else {+ return Ok(ToolResult::error(+ "spawn_subagent requires a live harness run context.",+ ));+ };let registry = match AgentDefinitionRegistry::global() {Some(reg) => reg,