Skip to content

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

fix(composio): handle missing tool name in execute dispatch

Steven Enamakelf8fae049b481
diff --git a/crates/openhuman-core/src/integrations/composio/execute_dispatch.rs b/crates/openhuman-core/src/integrations/composio/execute_dispatch.rs
index 1139694093..45314cfc51 100644
--- a/crates/openhuman-core/src/integrations/composio/execute_dispatch.rs
+++ b/crates/openhuman-core/src/integrations/composio/execute_dispatch.rs
@@ -38,6 +38,15 @@ pub async fn execute_composio_action(
}
emit_external_transfer(egress);
+ // Resolve the mode-aware route on the host first: a module configured
+ // without a route answers with an opaque "no connector route" error, so a
+ // missing direct-mode key or backend session must fail here with the
+ // actionable message (#1710).
+ if let Err(e) = super::client::create_composio_client(config) {
+ tracing::debug!(tool = %tool, "[composio][dispatch] route unavailable");
+ return Err(format!("{e:#}"));
+ }
+
tracing::debug!(
tool = %tool,
connection_id = ?connection_id,