Skip to content

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

chore: replace debug logs with test diagnostics

Steven Enamakel55fefeb71e47
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 b75a6604f9..0fe12be0c5 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
@@ -50,8 +50,8 @@ impl SpawnSubagentTool {
match SubagentSessionStore::new_in_context(&dispatch, parent.workspace_dir.clone()) {
Ok(store) => store,
Err(error) => {
- log::debug!(
- "[spawn_subagent] caller owner context unavailable: run_core_bound={} dispatch_resolved={}",
+ eprintln!(
+ "[test-diagnostic] spawn owner context unavailable: run_core_bound={} dispatch_resolved={}",
run_context.core.is_some(),
dispatch.resolved().is_some()
);
diff --git a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
index f44fdc1507..c54a6b1417 100644
--- a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
+++ b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs
@@ -138,8 +138,8 @@ fn handle_agent_chat(
// spawned tools) has settled. The run context carries only a weak
// reference so a persisted session cannot pin a tenant indefinitely.
let core_lease = ctx.resolved();
- log::debug!(
- "[agent_chat] one-shot owner context resolved headless={} bound={}",
+ eprintln!(
+ "[test-diagnostic] agent_chat owner context resolved headless={} bound={}",
ctx.is_headless_agent_chat(),
core_lease.is_some()
);