Skip to content

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

test(tinyagents): clone durable registry in use_skill dispatch fixture

Steven Enamakel17d836173445
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.rs
index 24f2c9d144..4632efa8da 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
@@ -152,8 +152,11 @@ fn build_use_skill_dispatch_with_target(
let durable: Arc<Vec<Box<dyn Tool>>> = Arc::new(vec![use_skill_tool, create_image_tool]);
handle.bind(Arc::downgrade(&durable));
- let adapter = shared_tool_adapter(vec![durable], tinyagents_harness::tool::packs::USE_SKILL)
- .expect("use_skill resolves in the durable registry it was just placed in");
+ let adapter = shared_tool_adapter(
+ vec![durable.clone()],
+ tinyagents_harness::tool::packs::USE_SKILL,
+ )
+ .expect("use_skill resolves in the durable registry it was just placed in");
let dispatch = dispatch_selector(vec![durable])(USE_SKILL, Arc::new(adapter) as Arc<dyn Tool>)
.expect("use_skill receives TinyAgents' bound owner dispatch");
(dispatch, handle)