Skip to content

fix: hide CMD window on Windows when spawning shell commands#44

Open
cl1107 wants to merge 1 commit into
cosmicstack-labs:mainfrom
cl1107:fix/hide-cmd-window
Open

fix: hide CMD window on Windows when spawning shell commands#44
cl1107 wants to merge 1 commit into
cosmicstack-labs:mainfrom
cl1107:fix/hide-cmd-window

Conversation

@cl1107
Copy link
Copy Markdown

@cl1107 cl1107 commented May 7, 2026

Problem

On Windows, shell commands spawn a visible cmd.exe window that flashes on screen, degrading user experience.

Fix

Add to options in two files:

  • — the main run_command tool
  • — background task execution

This is a Node.js built-in option (v13.3+) that suppresses the console window on Windows. The daemon launcher () already uses this pattern.

Test Plan

  • On Windows: verify no CMD window flashes when agent runs shell commands
  • On Windows: verify background tasks also stay hidden
  • On macOS/Linux: verify behavior is unchanged (windowsHide is a no-op)

… Windows

Both run_command and background-tasks open a visible cmd.exe window
when spawning shell commands on Windows. Adding windowsHide: true
suppresses this behavior. The daemon.ts already uses this option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant