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
chore: remove leftover test diagnostics and reformat
Steven Enamakelb8a6797a809e
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.rsindex 0fe12be0c5..5255203f89 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@@ -1,5 +1,4 @@-type DetachedSpawnParent<'a> =- &'a RunContext<crate::agent::tinyagents::host::OpenHumanRunContext>;+type DetachedSpawnParent<'a> = &'a RunContext<crate::agent::tinyagents::host::OpenHumanRunContext>;impl SpawnSubagentTool {async fn execute_with_context_inner(@@ -50,11 +49,6 @@ impl SpawnSubagentTool {match SubagentSessionStore::new_in_context(&dispatch, parent.workspace_dir.clone()) {Ok(store) => store,Err(error) => {- eprintln!(- "[test-diagnostic] spawn 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}")));diff --git a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rsindex c54a6b1417..ad5280535d 100644--- a/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs+++ b/crates/openhuman-core/src/agent_runs/agent_chat/controllers.rs@@ -138,11 +138,6 @@ 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();- eprintln!(- "[test-diagnostic] agent_chat owner context resolved headless={} bound={}",- ctx.is_headless_agent_chat(),- core_lease.is_some()- );let target = match params.agent_id.as_deref().map(str::trim) {Some(id) if !id.is_empty() => super::AgentChatTarget::AgentId(id),_ => super::AgentChatTarget::Orchestrator,diff --git a/crates/openhuman-core/src/web_chat/ops/turn_guards_tests.rs b/crates/openhuman-core/src/web_chat/ops/turn_guards_tests.rsindex c8ff50d9fa..a3c68e2bf8 100644--- a/crates/openhuman-core/src/web_chat/ops/turn_guards_tests.rs+++ b/crates/openhuman-core/src/web_chat/ops/turn_guards_tests.rs@@ -1,5 +1,5 @@-use std::sync::Arc;use super::*;+use std::sync::Arc;fn result(text: &str) -> WebChatTaskResult {WebChatTaskResult {@@ -34,10 +34,8 @@ fn disabled_backstop_carries_no_deadline() {/// tenant-scoped persistence after the task-local scope has ended.#[tokio::test]async fn guarded_turn_env_carries_the_callers_core_context() {- let core = crate::core::runtime::CoreContext::for_test(- crate::core::runtime::DomainSet::full(),- None,- );+ let core =+ crate::core::runtime::CoreContext::for_test(crate::core::runtime::DomainSet::full(), None);let ctx = crate::core::runtime::DispatchCtx::new(Arc::clone(&core));let returned = run_turn_under_cancel_and_deadline(&ctx,diff --git a/tests/json_rpc_threads_e2e.rs b/tests/json_rpc_threads_e2e.rsindex 19bfac6dad..65a0e2b1af 100644--- a/tests/json_rpc_threads_e2e.rs+++ b/tests/json_rpc_threads_e2e.rs@@ -1066,9 +1066,8 @@ async fn json_rpc_threads_transcript_get_projects_and_paginates() {MessageUsage, ToolFailure, TranscriptMessage, TranscriptToolCall, TurnUsage,};- let mut user = TranscriptMessage::user(- "Current Date & Time: 2026-07-21 09:00:00 UTC\n\nWeather in NYC?",- );+ let mut user =+ TranscriptMessage::user("Current Date & Time: 2026-07-21 09:00:00 UTC\n\nWeather in NYC?");user.request_id = Some("req-1".to_string());let mut assistant = TranscriptMessage::assistant_with_calls("Checking.",@@ -1104,10 +1103,8 @@ async fn json_rpc_threads_transcript_get_projects_and_paginates() {});let mut weather = TranscriptMessage::tool_result("call-1", "72F sunny");weather.request_id = Some("req-1".to_string());- let mut traffic = TranscriptMessage::tool_result(- "call-2",- "error: traffic service unavailable",- );+ let mut traffic =+ TranscriptMessage::tool_result("call-2", "error: traffic service unavailable");traffic.request_id = Some("req-1".to_string());traffic.tool_failure = Some(ToolFailure {failed: true,