From 474d097c34dbdeafb95abb4587db260261aaa7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Thu, 26 Mar 2026 19:59:18 -0600 Subject: [PATCH] fix: add shell flag for Windows spawn in VSCode extension (#2781) On Windows, npm global installs create .cmd wrapper scripts. Node's child_process.spawn cannot execute .cmd files directly without shell: true, resulting in ENOENT/EINVAL errors when the VSCode extension tries to start the GSD agent. Closes #2721 Co-authored-by: Claude Opus 4.6 (1M context) --- vscode-extension/src/gsd-client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vscode-extension/src/gsd-client.ts b/vscode-extension/src/gsd-client.ts index 61008b90a..b8ae2bc35 100644 --- a/vscode-extension/src/gsd-client.ts +++ b/vscode-extension/src/gsd-client.ts @@ -127,6 +127,7 @@ export class GsdClient implements vscode.Disposable { cwd: this.cwd, stdio: ["pipe", "pipe", "pipe"], env: { ...process.env }, + shell: process.platform === "win32", }); this.process = proc;