Skip to content

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

test(subagent_host): wrap host run in box_pin for async execution

Steven Enamakelaa3584935e5a
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
index 994994296b..5bbc60dc1f 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs
@@ -254,9 +254,11 @@ async fn run_host_from_test_options(
let mut root_data = options.run_context.clone();
let root_config = root_data.root_run_config("subagent-host-test");
let parent = root_data.into_tinyagents(root_config);
- crate::agent::subagent_host::OpenHumanSubagentHost::new(definition.clone(), options)
- .run(&parent, input.to_owned())
- .await
+ Box::pin(
+ crate::agent::subagent_host::OpenHumanSubagentHost::new(definition.clone(), options)
+ .run(&parent, input.to_owned()),
+ )
+ .await
}
/// Build a minimal `ParentExecutionContext` suitable for runner tests.