The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(composio): correct module client integration wiring
Steven Enamakeldeb2857270e2
diff --git a/crates/openhuman-core/src/integrations/composio/client_tests.rs b/crates/openhuman-core/src/integrations/composio/client_tests.rsindex 723f36bb36..bff6e8b42b 100644--- a/crates/openhuman-core/src/integrations/composio/client_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/client_tests.rs@@ -83,9 +83,7 @@ impl Drop for DirectAuthFailureGuard {/// A host-registered backend route (the core ships none of its own).fn register_fake_backend_route() {- register_composio_route_builder(crate::config::schema::COMPOSIO_MODE_BACKEND, |_config| {- Ok(ComposioRoute::Backend)- });+ crate::integrations::composio::test_backend_route::register();}#[test]diff --git a/crates/openhuman-core/src/integrations/composio/mod.rs b/crates/openhuman-core/src/integrations/composio/mod.rsindex f5e32080e2..6475b1ae8e 100644--- a/crates/openhuman-core/src/integrations/composio/mod.rs+++ b/crates/openhuman-core/src/integrations/composio/mod.rs@@ -55,6 +55,8 @@ pub mod module_client;pub mod ops;pub(crate) mod processing;pub mod schemas;+#[cfg(test)]+pub(crate) mod test_backend_route;pub mod tools;pub(crate) mod trigger_history;pub mod types;diff --git a/crates/openhuman-core/src/integrations/composio/module_client.rs b/crates/openhuman-core/src/integrations/composio/module_client.rsindex f789fc2583..32e33b8b6b 100644--- a/crates/openhuman-core/src/integrations/composio/module_client.rs+++ b/crates/openhuman-core/src/integrations/composio/module_client.rs@@ -314,6 +314,9 @@ pub(crate) static MODULE_LOCK: tokio::sync::Mutex<()> = tokio::sync::Mutex::cons/// Take the module lock for the rest of the test.#[cfg(test)]pub(crate) async fn module_guard() -> tokio::sync::MutexGuard<'static, ()> {+ // Tests that take the module drive its backend mode against a local mock;+ // give this thread the stand-in route a host would register.+ super::test_backend_route::register();MODULE_LOCK.lock().await}