fix(server): scope registry prune to tracked entries only

Group-based filter now requires entry.Tracked to avoid removing
unrelated agent entries that happen to share the same group name.
This commit is contained in:
Willie
2026-04-04 17:05:22 +08:00
parent 657e400f8c
commit b22cd6b50b
+2 -2
View File
@@ -270,8 +270,8 @@ func (s *Server) handleUninstallRepo(w http.ResponseWriter, r *http.Request) {
if fullName == repoName {
continue
}
// Match skills grouped under this repo (group="team-skills" for repo "_team-skills")
if entry.Group == trimmedGroup {
// Match tracked skills grouped under this repo (group="team-skills" for repo "_team-skills")
if entry.Tracked && entry.Group == trimmedGroup {
continue
}
// Match nested members (e.g., "org/_team-skills/sub-skill")