Skip to content

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

test(orchestration): clone session port in force-fresh driver test

Steven Enamakelf60bfeca91f0
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
index d54fbfcd65..3d86e68215 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_driver_tests.rs
@@ -225,7 +225,9 @@ async fn force_fresh_cancels_old_driver_before_creating_a_new_session() {
let wait = SubAgentJobsTool::new((*jobs).clone())
.with_fixed_action(tinyagents_harness_tools::subagents::SubAgentJobAction::Await)
.with_identifier_fields("task_id", "subagent_session_id")
- .with_sessions(session_port, |_| "force-fresh-parent-session".to_owned())
+ .with_sessions(session_port.clone(), |_| {
+ "force-fresh-parent-session".to_owned()
+ })
.with_owner_scope(Arc::new({
let owner = crate::agent::tinyagents::tool_registration::subagent_owner_key(
&workspace,