Skip to content

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

refactor(composio): make connection id lookup fallible

Steven Enamakel6ce3ce2f1032
diff --git a/crates/openhuman-core/src/integrations/composio/flow_backend.rs b/crates/openhuman-core/src/integrations/composio/flow_backend.rs
index 060be44e5c..70fce94aa5 100644
--- a/crates/openhuman-core/src/integrations/composio/flow_backend.rs
+++ b/crates/openhuman-core/src/integrations/composio/flow_backend.rs
@@ -82,7 +82,7 @@ pub(crate) async fn invoke(
ctx.policy.approve(ctx.dispatch, ctx.approval, decision, slug, &args).await?
};
- let connection_id = crate::integrations::composio::flow_gate::composio_connection_id(conn);
+ let connection_id = conn.and_then(crate::integrations::composio::flow_gate::composio_connection_id);
let response = execute_for_connection(&live, slug, (!args.is_null()).then_some(args), connection_id)
.await
.and_then(|result| crate::integrations::composio::flow_gate::reject_unsuccessful_composio_response(slug, result).map_err(|error| error.to_string()))