fix: accidental regression on enabled_skills being empty = all

This commit is contained in:
2026-06-04 16:12:32 -06:00
parent 8d6e9bef32
commit b997e9493c
2 changed files with 4 additions and 8 deletions
+1 -7
View File
@@ -129,13 +129,7 @@ async fn run(
}
};
let node_has_enabled_skills = node
.enabled_skills
.as_deref()
.map(|s| !s.is_empty())
.unwrap_or(false);
if policy.skills_enabled && node_has_enabled_skills {
if policy.skills_enabled {
let mut tools = role.enabled_tools().map(|v| v.to_vec()).unwrap_or_default();
for decl in skill_function_declarations() {
if !tools.contains(&decl.name) {