fix: accidental regression on enabled_skills being empty = all

This commit is contained in:
2026-06-04 16:12:32 -06:00
parent e89255f89d
commit b0bc25ce6d
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) {
+3 -1
View File
@@ -259,7 +259,9 @@ impl GraphValidator {
continue;
}
if let Err(e) = paths::validate_skill_name(name) {
result.error(ValidationError::new(format!(
result.error(ValidationError::with_node(
node_id,
format!(
"llm node 'enabled_skills' contains an invalid skill name: '{name}': {e}"
)));
continue;