Skip to content

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

test(orchestration): use dispatch context from live data in force-fresh test

Steven Enamakel4be0823bcd9a
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 57547d6eb6..5cb069e02c 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
@@ -198,8 +198,9 @@ async fn force_fresh_cancels_old_driver_before_creating_a_new_session() {
release_first.notify_one();
release_second.notify_one();
+ let session_dispatch = live.data.dispatch_ctx();
let session_port = crate::agent::orchestration::subagent_sessions::open_for_context(
- &crate::core::runtime::DispatchCtx::new(Arc::clone(&core)),
+ &session_dispatch,
workspace.clone(),
"force-fresh-parent-session",
Some("force-fresh-parent-thread".into()),