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
test(orchestration): add coverage for agent team and subagent tools
Steven Enamakel64edded818a9
diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rsindex a6216b4e35..ccc248eee0 100644--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs@@ -80,7 +80,6 @@ fn mock_parent(model: Arc<dyn ChatModel<()>>) -> ParentExecutionContext {session_parent_prefix: None,on_progress: None,run_queue: None,- },host_env: Default::default(),}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rsindex e31daff6ec..cf0d0b57e6 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs@@ -127,6 +127,5 @@ fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {session_parent_prefix: None,on_progress: None,run_queue: None,- },host_env: Default::default(),}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rsindex 7a872e0073..2b76dc8dd4 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -586,7 +586,6 @@ fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {session_parent_prefix: None,on_progress: None,run_queue: None,- },host_env: Default::default(),}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rsindex f4940eb20b..7828c08575 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs@@ -90,9 +90,7 @@ fn parent_context_with_tools() -> ParentExecutionContext {let mut parent = parent_context(max_parallel_tools);parent.all_tools = Arc::new(tools);- parent,- host_env: Default::default(),- }+ parent/// The live harness does not recover ambient cancellation. Its typed/// dispatch receives the parent `RunContext`, so an already-cancelled parent@@ -640,9 +638,7 @@ async fn agent_turn_runs_long_parallel_subagent_flow_with_many_nested_tool_callsfn parent_admitting(ids: &[&str], tools: Vec<Box<dyn Tool>>) -> ParentExecutionContext {let mut parent = parent_context_with_tools(8, tools);parent.allowed_subagent_ids = ids.iter().map(|id| id.to_string()).collect();- parent,- host_env: Default::default(),- }+ parent/// Helper: the single write-capable tool the dispatch fixtures share.fn write_fixture_tools() -> Vec<Box<dyn Tool>> {diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rsindex bab959bb15..34f5e2dec4 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs@@ -37,7 +37,6 @@ fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {run_queue: None,agent_config: crate::config::AgentConfig::default(),tool_call_format: tinytools_agent::dialect::ToolCallFormat::Native,- },host_env: Default::default(),}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex a15baaec2a..23285228c7 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -504,7 +504,6 @@ fn parent_context(session_parent_prefix: None,on_progress: None,run_queue: None,- },host_env: Default::default(),}diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rsindex d589fefcce..e48158c5f8 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs@@ -280,7 +280,6 @@ fn make_parent(session_parent_prefix: None,on_progress: None,run_queue: None,- },host_env: Default::default(),}diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rsindex 9890efcefd..79fef17552 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs@@ -266,7 +266,6 @@ fn stale_parent_snapshot() -> ParentExecutionContext {session_parent_prefix: None,on_progress: None,run_queue: None,- },host_env: Default::default(),}diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rsindex 5cba1f00d0..a407f0c883 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs@@ -116,7 +116,6 @@ fn parent_execution_context(workspace_dir: &Path) -> ParentExecutionContext {session_parent_prefix: None,on_progress: None,run_queue: None,- },host_env: Default::default(),}