Skip to content

Commit d9a5c62

Browse files
OpenSource03claude
andcommitted
fix: enable shell mode for ACP agent spawn on Windows
On Windows, `npx` is a `.cmd` batch wrapper. Node's `spawn()` doesn't resolve `.cmd` extensions, causing ENOENT even when npx is on PATH. Adding `shell: true` on win32 lets cmd.exe handle the resolution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 11b3b01 commit d9a5c62

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

electron/src/ipc/acp-sessions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ async function createAcpConnection(
255255
const proc = spawn(agentDef.binary, agentDef.args ?? [], {
256256
stdio: ["pipe", "pipe", "pipe"],
257257
env: { ...process.env, ...agentDef.env },
258+
shell: process.platform === "win32",
258259
});
259260

260261
// Process lifecycle handlers

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "harnss",
3-
"version": "0.21.4",
3+
"version": "0.21.5",
44
"productName": "Harnss",
55
"description": "Harness your AI coding agents — one desktop app for Claude Code, Codex, and any ACP agent",
66
"author": {

0 commit comments

Comments
 (0)