Skip to content

The open-source app everyone uses to manage agents at work

fix(scripts): use shell on Windows to fix spawn EINVAL in dev-runner

Fahmin346152f67d78
diff --git a/scripts/dev-runner.mjs b/scripts/dev-runner.mjs
index 7103949230..43262fd6ff 100644
--- a/scripts/dev-runner.mjs
+++ b/scripts/dev-runner.mjs
@@ -47,7 +47,7 @@ const serverScript = mode === "watch" ? "dev:watch" : "dev";
const child = spawn(
pnpmBin,
["--filter", "@paperclipai/server", serverScript, ...forwardedArgs],
- { stdio: "inherit", env },
+ { stdio: "inherit", env, shell: process.platform === "win32" },
);
child.on("exit", (code, signal) => {