Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix: hide CMD window popup on Windows when spawning agent CLI

Gus7f6f5ed4e4e8
diff --git a/src/cli/daemon/agent/claude.ts b/src/cli/daemon/agent/claude.ts
index 0028a5f8f..a3e328769 100644
--- a/src/cli/daemon/agent/claude.ts
+++ b/src/cli/daemon/agent/claude.ts
@@ -34,6 +34,7 @@ export class ClaudeBackend implements AgentBackend {
stdio: ["pipe", "pipe", "pipe"],
env: { ...process.env, ...options.env },
shell: process.platform === "win32",
+ windowsHide: true,
});
if (!proc.pid) {
diff --git a/src/cli/daemon/agent/codex.ts b/src/cli/daemon/agent/codex.ts
index f53024700..f1e0aaf86 100644
--- a/src/cli/daemon/agent/codex.ts
+++ b/src/cli/daemon/agent/codex.ts
@@ -51,6 +51,7 @@ export class CodexBackend implements AgentBackend {
stdio: ["pipe", "pipe", "pipe"],
env: { ...process.env, ...options.env },
shell: process.platform === "win32",
+ windowsHide: true,
});
if (!proc.pid) {
diff --git a/src/cli/daemon/agent/opencode.ts b/src/cli/daemon/agent/opencode.ts
index aa4e2cfea..bb502b6bf 100644
--- a/src/cli/daemon/agent/opencode.ts
+++ b/src/cli/daemon/agent/opencode.ts
@@ -26,6 +26,7 @@ export class OpenCodeBackend implements AgentBackend {
stdio: ["ignore", "pipe", "pipe"],
env: { ...process.env, ...options.env, OPENCODE_PERMISSION: '{"*":"allow"}' },
shell: process.platform === "win32",
+ windowsHide: true,
});
if (!proc.pid) {