Skip to content

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

test(agent_registry): clone registry arc in specialist agent loader test

Steven Enamakel4298b822e989
diff --git a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs
index 8352f85660..c3686c9fdb 100644
--- a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs
+++ b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs
@@ -257,7 +257,7 @@ fn orchestrator_routes_every_registered_specialist_through_spawn_subagent() {
DomainSet::full(),
crate::tools::toolpacks::ToolGroups::none(),
)
- .definitions(registry),
+ .definitions(Arc::clone(&registry)),
);
CoreContext::sync_scope(core, || {
let spawn = crate::agent::orchestration::tools::SpawnSubagentTool::new();