fix(server): use shell on Windows for all provider spawns

Windows npm shims (e.g. C:\nvm4w\nodejs\codex) fail with ENOENT when
spawned without shell. Use `shell: true` on win32 for all provider
launches instead of the overly complex shouldUseWindowsShell function.
This commit is contained in:
Mohamed Boudra
2026-04-01 15:19:28 +07:00
parent 2d02db6ae0
commit cce8dee21c
6 changed files with 32 additions and 3 deletions

View File

@@ -175,6 +175,7 @@ function checkProviderBinary(binary: string): { path: string | null; version: st
timeout: 5000,
stdio: ["ignore", "pipe", "pipe"],
env,
shell: process.platform === "win32",
}).trim();
return { path: binaryPath, version: output || null };
} catch {