Skip to content

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

fix(profiles): exclude workflow tools from profile capabilities

Steven Enamakel1658f776f37c
diff --git a/crates/openhuman-core/src/profiles/capabilities.rs b/crates/openhuman-core/src/profiles/capabilities.rs
index 235d149ff0..5d973242b9 100644
--- a/crates/openhuman-core/src/profiles/capabilities.rs
+++ b/crates/openhuman-core/src/profiles/capabilities.rs
@@ -80,8 +80,8 @@ impl ProfileCapabilities {
)
&& !name.starts_with("delegate_")
&& !name.starts_with("mcp_")
- && !crate::tools::toolpacks::pack_for_tool(name)
- .is_some_and(|pack| pack.id == "workflows")
+ && crate::tools::toolpacks::pack_for_tool(name)
+ .is_none_or(|pack| pack.id != "workflows")
&& self.names.as_ref().is_none_or(|names| names.contains(name))
}