Skip to content

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

feat(composio): add tool definitions for part 03

Steven Enamakelb25a2e0794dc
diff --git a/src/openhuman/integrations/composio/tools_part_03.rs b/src/openhuman/integrations/composio/tools_part_03.rs
index 42342c3fd6..c28f6a606c 100644
--- a/src/openhuman/integrations/composio/tools_part_03.rs
+++ b/src/openhuman/integrations/composio/tools_part_03.rs
@@ -109,11 +109,16 @@ impl Tool for ComposioExecuteTool {
}
// Enforce per-user scope preferences before delegating to backend.
- match evaluate_tool_visibility(&tool).await {
+ // Uses `self.config` rather than the live-reloaded config resolved
+ // further down: a scope-pref read is not the direct-mode-toggle
+ // hazard the composio client resolution below guards against, and
+ // restructuring the reload earlier would move it ahead of the
+ // sandbox/task-window setup this function does first.
+ match evaluate_tool_visibility(self.config.as_ref(), &tool).await {
ToolDecision::Allow | ToolDecision::PassthroughCheckScope { .. } => {}
ToolDecision::BlockedByScope { scope } => {
let toolkit = toolkit_from_slug(&tool).unwrap_or_default();
- let pref = load_user_scope_pref(&toolkit).await;
+ let pref = load_user_scope_pref(self.config.as_ref(), &toolkit).await;
let msg = scope_error_message(&tool, scope, pref);
tracing::info!(
tool = %tool,