From e2383de3a1fa6c122d05c15538da9f7e8f7827e6 Mon Sep 17 00:00:00 2001 From: walker Date: Fri, 30 Jan 2026 09:26:11 +0800 Subject: [PATCH] fix: quote Windows paths with spaces in UI runner command --- scripts/ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ui.js b/scripts/ui.js index 16ad6b0c2..200e17583 100644 --- a/scripts/ui.js +++ b/scripts/ui.js @@ -101,6 +101,11 @@ if (!runner) { process.stderr.write("Missing UI runner: install pnpm, then retry.\n"); process.exit(1); } +// On Windows, paths with spaces (e.g. C:\Program Files\...) must be quoted +// so the shell does not split them. +if (process.platform === "win32" && runner.cmd.includes(" ")) { + runner.cmd = `"${runner.cmd}"`; +} const script = action === "install"