fix: preserve empty skill discovery roots (#384)

This commit is contained in:
Chrys
2026-04-17 23:17:04 +08:00
committed by GitHub
parent dee82177d3
commit 28d11713db
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -138,7 +138,11 @@ func workspaceSkillDiscoveryRootsFromMetadata(metadata map[string]any) ([]string
return []string{}, true
}
return normalizeWorkspaceSkillDiscoveryRoots(roots), true
normalized := normalizeWorkspaceSkillDiscoveryRoots(roots)
if normalized == nil {
return []string{}, true
}
return normalized, true
}
func withWorkspaceImagePreference(metadata map[string]any, image string) map[string]any {