Skip to content

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

test(connectors): add diagnostic probe for unguarded route changes

Steven Enamakelef1d20f6ba68
diff --git a/crates/openhuman-core/src/modules/connectors.rs b/crates/openhuman-core/src/modules/connectors.rs
index 51469e3c59..e6d1dd40e0 100644
--- a/crates/openhuman-core/src/modules/connectors.rs
+++ b/crates/openhuman-core/src/modules/connectors.rs
@@ -298,6 +298,10 @@ async fn ensure_routed(config: &Config, proxy: &Proxy) -> Result<(), String> {
return Ok(());
}
+ #[cfg(test)]
+ if crate::integrations::composio::module_client::MODULE_LOCK.try_lock().is_ok() {
+ eprintln!("UNGUARDED-ROUTE-CHANGE {}", std::thread::current().name().unwrap_or("?"));
+ }
proxy
.call_confidential::<serde_json::Value>(methods::CONFIGURE, (route,))
.await