Skip to content

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

test(composio): hold module guard in direct mode routing test

Steven Enamakel5b76206bd308
diff --git a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs
index 46b16241cd..b6011d8efc 100644
--- a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs
@@ -141,6 +141,10 @@ async fn execute_tool_per_call_factory_means_no_baked_client() {
// `OPENHUMAN_WORKSPACE` at a tempdir, and persist the test's
// `Config` to that tempdir's `config.toml` before invoking the tool.
use crate::config::TEST_ENV_LOCK;
+ // The scope gate reads the user's scope preference from the connector
+ // module's storage and fails closed when it cannot; give it the memory
+ // backend a booted host has, so the gate answers and dispatch is reached.
+ let _module = crate::integrations::composio::module_client::module_guard().await;
let _env_guard = TEST_ENV_LOCK.lock().await;
let tmp = tempfile::tempdir().unwrap();