From d19e213010649e9104bab5dec428e8f827445ac5 Mon Sep 17 00:00:00 2001 From: Jeremy McSpadden Date: Mon, 16 Mar 2026 16:04:00 -0500 Subject: [PATCH] fix: handle bare /gsd cleanup command Previously, running `/gsd cleanup` without a subcommand (branches or snapshots) fell through to the unknown command handler, producing a warning. Now bare `/gsd cleanup` runs both branch and snapshot cleanup. --- src/resources/extensions/gsd/commands.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/resources/extensions/gsd/commands.ts b/src/resources/extensions/gsd/commands.ts index 14d6849a5..01d0ee490 100644 --- a/src/resources/extensions/gsd/commands.ts +++ b/src/resources/extensions/gsd/commands.ts @@ -281,6 +281,12 @@ export function registerGSDCommand(pi: ExtensionAPI): void { return; } + if (trimmed === "cleanup") { + await handleCleanupBranches(ctx, projectRoot()); + await handleCleanupSnapshots(ctx, projectRoot()); + return; + } + if (trimmed === "cleanup branches") { await handleCleanupBranches(ctx, projectRoot()); return;