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.
This commit is contained in:
Jeremy McSpadden 2026-03-16 16:04:00 -05:00
parent 2b0c0064cd
commit d19e213010

View file

@ -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;