Skip to content

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

test(orchestration): reuse spawn tool across continuation attempts

Steven Enamakel971df7623388
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
index 1cb1fad11f..222d018fbc 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
@@ -77,8 +77,9 @@ async fn resuming_after_owner_cache_loss_registers_live_task_before_launch() {
"restart-resume-owner-parent",
"restart-resume-owner-thread",
);
+ let spawn_tool = SpawnSubagentTool::new();
let spawn = || {
- SpawnSubagentTool::new().execute_with_live_parent_context(
+ spawn_tool.execute_with_live_parent_context(
json!({
"agent_id": "task_manager_agent",
"prompt": "Investigate the restart-resume owner fixture",