Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

On Windows, when spawning bash processes (via Git Bash or WSL), the
default behavior creates visible console windows that steal focus.

Add windowsHide: true to all spawn() calls that run background bash
or ssh processes. This prevents the console windows from appearing.

The terminal service spawn calls intentionally remain visible since
they're meant to open user-facing terminal windows.

Fixed locations:

  • LocalBaseRuntime.ts: exec() and runInitHook()
  • bashExecutionService.ts: executeStreaming()
  • SSHRuntime.ts: exec(), execSSHCommand(), and bundle creation

Generated with mux

On Windows, when spawning bash processes (via Git Bash or WSL), the
default behavior creates visible console windows that steal focus.

Add windowsHide: true to all spawn() calls that run background bash
or ssh processes. This prevents the console windows from appearing.

The terminal service spawn calls intentionally remain visible since
they're meant to open user-facing terminal windows.

Fixed locations:
- LocalBaseRuntime.ts: exec() and runInitHook()
- bashExecutionService.ts: executeStreaming()
- SSHRuntime.ts: exec(), execSSHCommand(), and bundle creation

_Generated with mux_
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 5, 2025
Merged via the queue into main with commit 1fc5493 Dec 5, 2025
15 of 16 checks passed
@ibetitsmike ibetitsmike deleted the mux-on-windows-when-it-uses-ws branch December 5, 2025 07:08
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