Skip to content

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

test(orchestration): reuse cloned core in failed steer test

Steven Enamakelbebf08a72213
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 7d1f641eaa..c843cdd9cd 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
@@ -52,7 +52,7 @@ async fn failed_steer_of_running_reused_session_does_not_create_second_child() {
action_root: None,
task_key: "failed-steer-canary".into(),
};
- let existing = crate::core::runtime::CoreContext::sync_scope(live.data.core().unwrap().clone(), || {
+ let existing = crate::core::runtime::CoreContext::sync_scope(core.clone(), || {
crate::agent::orchestration::subagent_sessions::upsert_running(
&store,
SubagentSessionUpsert {