Skip to content

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

test(orchestration): initialise global agent registry in subagent e2e test

Steven Enamakel4a6806c85c72
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.rs
index 9e8f790ca1..118a9ac710 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
@@ -21,6 +21,9 @@ const WORKER_THREAD_CANARY: &str = "tool-e2e-worker-thread-canary";
#[tokio::test]
async fn spawn_subagent_tool_runs_child_agent_e2e() {
+ // nextest runs each test in its own process, so the registry the other
+ // tests in this file initialise is not there for this one.
+ let _ = AgentDefinitionRegistry::init_global_builtins();
let workspace = tempfile::TempDir::new().expect("workspace");
let provider = Arc::new(ScriptedModel::new(vec![(
SPAWN_SUBAGENT_CANARY,