Commit 1fc5493
authored
🤖 fix: prevent Windows bash windows from stealing focus (#901)
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`_1 parent 700253c commit 1fc5493
File tree
3 files changed
+16
-2
lines changed- src/node
- runtime
- services
3 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| 378 | + | |
| 379 | + | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
408 | 410 | | |
409 | 411 | | |
410 | 412 | | |
411 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
412 | 417 | | |
413 | 418 | | |
414 | 419 | | |
| |||
591 | 596 | | |
592 | 597 | | |
593 | 598 | | |
594 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
595 | 603 | | |
596 | 604 | | |
597 | 605 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments