Skip to content

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

fix(spawn_subagent): log caller context flags in message

Steven Enamakel9f1cfaa5e901
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
index 6c98fac127..b75a6604f9 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
@@ -51,9 +51,9 @@ impl SpawnSubagentTool {
Ok(store) => store,
Err(error) => {
log::debug!(
- run_context_core_bound = run_context.core.is_some(),
- dispatch_resolved = dispatch.resolved().is_some(),
- "[spawn_subagent] caller owner context unavailable"
+ "[spawn_subagent] caller owner context unavailable: run_core_bound={} dispatch_resolved={}",
+ run_context.core.is_some(),
+ dispatch.resolved().is_some()
);
return Ok(ToolResult::error(format!(
"spawn_subagent: failed to open the caller-scoped session store: {error}"