Skip to content

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

chore: files changed crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.r

Steven Enamakelec66b1ad3b47
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
index e8cb322a9f..5a20e55328 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
@@ -275,6 +275,8 @@ fn on_agent_runtime(test: impl std::future::Future<Output = ()> + Send + 'static
#[test]
fn a_bound_channel_runs_its_host_agent_and_refuses_its_write_tool() {
+ // The resolver slot is process-wide; hold it for the whole turn.
+ let _slot = host_agents::tests::lock();
on_agent_runtime(bound_channel_runs_its_host_agent());
}
@@ -303,7 +305,6 @@ async fn bound_channel_runs_its_host_agent() {
let ctx = context(Arc::clone(&channel), config(&tmp, Some("teeny-chat")));
let outcome = {
- let _slot = host_agents::tests::lock();
host_agents::install(Arc::clone(&resolver));
let started = std::time::Instant::now();
process_channel_message(ctx, message("hello teeny")).await;