Skip to content

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

fix(ops): pass config to load_user_scope_pref in flow_tool_allowed

Steven Enamakeld67c970cf897
diff --git a/src/openhuman/flows/tinyflows/caps/ops.rs b/src/openhuman/flows/tinyflows/caps/ops.rs
index 734bbcfa1a..2034fcd5a5 100644
--- a/src/openhuman/flows/tinyflows/caps/ops.rs
+++ b/src/openhuman/flows/tinyflows/caps/ops.rs
@@ -214,7 +214,7 @@ async fn flow_tool_allowed(
// classify_unknown heuristic (mirrors
// `providers::is_action_visible_with_pref`'s uncurated branch), which the
// pre-fix Path B never applied at all.
- let pref = load_user_scope_pref(&toolkit).await;
+ let pref = load_user_scope_pref(config, &toolkit).await;
let allowed = pref.allows(classify_unknown(slug));
tracing::debug!(target: "flows", %slug, %toolkit, allowed, "[flows] tool_call curation: live catalog + scope decision");
allowed