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 connection fields gracefully

Steven Enamakel3c1aa59ae1a8
diff --git a/crates/openhuman-core/src/integrations/composio/tools/direct/connections.rs b/crates/openhuman-core/src/integrations/composio/tools/direct/connections.rs
index 6991c357e0..320469fb33 100644
--- a/crates/openhuman-core/src/integrations/composio/tools/direct/connections.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools/direct/connections.rs
@@ -266,11 +266,11 @@ pub struct ComposioConnectedAccount {
/// Toolkit may be a plain string slug or a nested
/// `ComposioToolkitRef`. Extracted via [`Self::toolkit_slug`].
#[serde(default)]
- toolkit: Option<serde_json::Value>,
+ pub(super) toolkit: Option<serde_json::Value>,
/// Older payload shape — a top-level `app_name` string. Used as
/// a fallback when `toolkit` is absent or unparseable.
#[serde(default, rename = "appName", alias = "app_name")]
- app_name: Option<String>,
+ pub(super) app_name: Option<String>,
}
impl ComposioConnectedAccount {