orca/src
Jinwoo Hong f0fdd3a716
Hide console windows for children of the node.exe-hosted daemon (#7486)
Since #7473 the terminal daemon runs under a standalone node.exe.
Electron's bundled Node defaults windowsHide to true; plain node.exe
defaults it to false, so every child_process call in the daemon that
does not pass the flag - the periodic PowerShell CIM process probes,
node-pty's kill-path conpty_console_list_agent fork - now allocates a
visible console, which opens and closes a Windows Terminal window on
the user's screen every few seconds.

Fix: daemon-entry installs a child_process shim (first import, before
any module captures bindings like promisify(execFile)) that defaults
windowsHide: true across spawn/exec/execFile/fork and their sync
variants, restoring the Electron default the daemon has always relied
on. Explicit windowsHide from a caller still wins. Also adds
windowsHide to node-pty's console-list agent fork in the existing
patch as defense in depth.

Verified on Windows: reproduced the flash with the rc.5 production
daemon (WindowsTerminal windows, ~3s cadence matching the CIM probe
interval, conhost spawned visible-capable "0x4"); with the shim, a
node.exe-hosted daemon's children (OpenConsole, powershell, node
helpers) all run without a visible-capable console and session kill
still works end to end.
2026-07-05 21:26:30 -07:00
..
cli fix(emulator): recycle iOS simulators that wedge-boot without a display framebuffer (#7065) 2026-07-02 18:13:33 -07:00
main Hide console windows for children of the node.exe-hosted daemon (#7486) 2026-07-05 21:26:30 -07:00
preload Check for Updates: cmd/ctrl-click fetches latest perf-tagged prerelease (#7278) 2026-07-05 02:53:17 -07:00
relay Reduce Linux file-watcher load on large codebases by excluding nested build/dependency dirs (#7453) 2026-07-05 15:33:38 -07:00
renderer Fix Peek References scrollbar stability (#7479) 2026-07-05 21:04:15 -07:00
shared Prevent OMP terminals from being mislabeled as Gemini (#7447) 2026-07-05 13:39:38 -07:00
types