Unified · Split
| @@ -175,8 +175,6 @@ const buildCmd = Command.make( · 174 unmodified lines | ||
| 175 | 175 | cwd: serverDir, |
| 176 | 176 | stdout: config.verbose ? "inherit" : "ignore", |
| 177 | 177 | stderr: "inherit", |
| 178 | − // Windows needs shell mode to resolve `.cmd` shims on PATH. | |
| 179 | − shell: process.platform === "win32", | |
| 180 | 178 | }), |
| 181 | 179 | ); |
| 182 | 180 | |
| @@ -34,9 +34,8 @@ it.layer(NodeServices.layer)("effect-acp client", (it) => { · 33 unmodified lines | ||
| 34 | 34 | Effect.gen(function* () { |
| 35 | 35 | const spawner = yield* ChildProcessSpawner.ChildProcessSpawner; |
| 36 | 36 | const path = yield* Path.Path; |
| 37 | − const command = ChildProcess.make("node", mockPeerArgs(yield* mockPeerPath), { | |
| 37 | + const command = ChildProcess.make(process.execPath, mockPeerArgs(yield* mockPeerPath), { | |
| 38 | 38 | cwd: path.join(import.meta.dirname, ".."), |
| 39 | − shell: process.platform === "win32", | |
| 40 | 39 | ...(env ? { env: { ...process.env, ...env } } : {}), |
| 41 | 40 | }); |
| 42 | 41 | return yield* spawner.spawn(command); |
| @@ -57,9 +57,8 @@ const makeHandle = (env?: Record<string, string>) => · 56 unmodified lines | ||
| 57 | 57 | Effect.gen(function* () { |
| 58 | 58 | const spawner = yield* ChildProcessSpawner.ChildProcessSpawner; |
| 59 | 59 | const path = yield* Path.Path; |
| 60 | − const command = ChildProcess.make("node", mockPeerArgs(yield* mockPeerPath), { | |
| 60 | + const command = ChildProcess.make(process.execPath, mockPeerArgs(yield* mockPeerPath), { | |
| 61 | 61 | cwd: path.join(import.meta.dirname, ".."), |
| 62 | − shell: process.platform === "win32", | |
| 63 | 62 | ...(env ? { env: { ...process.env, ...env } } : {}), |
| 64 | 63 | }); |
| 65 | 64 | return yield* spawner.spawn(command); |
| @@ -22,9 +22,8 @@ it.layer(NodeServices.layer)("effect-codex-app-server client", (it) => { · 21 unmodified lines | ||
| 22 | 22 | const spawner = yield* ChildProcessSpawner.ChildProcessSpawner; |
| 23 | 23 | const path = yield* Path.Path; |
| 24 | 24 | const peerCwd = path.join(import.meta.dirname, ".."); |
| 25 | − const command = ChildProcess.make("node", mockPeerArgs(yield* mockPeerPath), { | |
| 25 | + const command = ChildProcess.make(process.execPath, mockPeerArgs(yield* mockPeerPath), { | |
| 26 | 26 | cwd: peerCwd, |
| 27 | − shell: process.platform === "win32", | |
| 28 | 27 | }); |
| 29 | 28 | return yield* spawner.spawn(command); |
| 30 | 29 | }); |