Merge pull request #1145 from Esubaalew/fix/upstream-skills-global-toggle

fix(agent): respect global skills toggle for skill tools
This commit is contained in:
Mauro 2026-03-05 22:17:32 +01:00 committed by GitHub
commit 23da4503c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,9 +171,10 @@ func registerSharedTools(
}
// Skill discovery and installation tools
skills_enabled := cfg.Tools.IsToolEnabled("skills")
find_skills_enable := cfg.Tools.IsToolEnabled("find_skills")
install_skills_enable := cfg.Tools.IsToolEnabled("install_skill")
if find_skills_enable || install_skills_enable {
if skills_enabled && (find_skills_enable || install_skills_enable) {
registryMgr := skills.NewRegistryManagerFromConfig(skills.RegistryConfig{
MaxConcurrentSearches: cfg.Tools.Skills.MaxConcurrentSearches,
ClawHub: skills.ClawHubConfig(cfg.Tools.Skills.Registries.ClawHub),