fix(setup): name each skill directory in the uninstall summary (#2118)

Uninstall checks every skill destination but labeled each result only as
"skill" (or "Claude Code skill"), so a retained or failed destination
could not be located. Label each result with the directory it refers to.

Fixes #2111

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-12 04:55:15 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 60259a91d9
commit 5190843f8f
2 changed files with 41 additions and 7 deletions
+4 -7
View File
@@ -504,14 +504,11 @@ const removeManagedSkills = async (
environment: Readonly<NodeJS.ProcessEnv>,
platform: NodeJS.Platform,
): Promise<UninstallItem> => {
// Every destination shares one summary item, so each result is labeled by
// the directory it refers to.
const results = await Promise.all(
skillDestinations(home, undefined, environment, platform).map(
({ client, path }) =>
removeManagedSkill(
path,
client === "claude_code" ? "Claude Code skill" : "skill",
fileSystem,
),
skillDestinations(home, undefined, environment, platform).map(({ path }) =>
removeManagedSkill(path, path, fileSystem),
),
);
const failed = results.find(({ status }) => status === "failed");