diff --git a/electron/main.ts b/electron/main.ts index 6fe7bd9..c13e150 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -122,7 +122,10 @@ function startServer(port: number): ChildProcess { PATH: `${basePath}:${home}/.npm-global/bin:${home}/.local/bin:${home}/.claude/bin:${shellPath}`, }; - const child = spawn(nodePath, [serverPath], { + // Spawn via /bin/sh to prevent the Electron binary from appearing + // as a separate Dock icon on macOS (even with ELECTRON_RUN_AS_NODE=1, + // macOS may show a Dock entry for the Electron Framework binary). + const child = spawn('/bin/sh', ['-c', `exec "${nodePath}" "${serverPath}"`], { env, stdio: 'pipe', cwd: standaloneDir, diff --git a/src/lib/claude-client.ts b/src/lib/claude-client.ts index 5b49268..76ff14a 100644 --- a/src/lib/claude-client.ts +++ b/src/lib/claude-client.ts @@ -137,6 +137,10 @@ export function streamClaude(options: ClaudeStreamOptions): ReadableStream, }; // Find claude binary for packaged app where PATH is limited