From 567f5242ca1a81407ce3d99fc6d799f570812932 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 28 Mar 2026 18:17:59 -0500 Subject: [PATCH] fix(commands): use specific validation reason in blocked-directory warning Show the actual reason from validateDirectory (e.g. "Refusing to run in your home directory" or "Refusing to run in system directory: /usr") instead of a generic "No project found" message. --- src/resources/extensions/gsd/commands/dispatcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/extensions/gsd/commands/dispatcher.ts b/src/resources/extensions/gsd/commands/dispatcher.ts index 6b635ff1a..d7263b66f 100644 --- a/src/resources/extensions/gsd/commands/dispatcher.ts +++ b/src/resources/extensions/gsd/commands/dispatcher.ts @@ -31,7 +31,7 @@ export async function handleGSDCommand( } catch (err) { if (err instanceof GSDNoProjectError) { ctx.ui.notify( - "No project found in this directory. `cd` into a project directory or run `/gsd new-project` to initialize one.", + `${err.message} \`cd\` into a project directory first.`, "warning", ); return;