Description
On Windows, NetworkManager.js spawns visible cmd.exe + conhost.exe windows every ~15-30 seconds due to the ARP discovery call missing the windowsHide option.
The offending line in lib/NetworkManager.js:
child_process_1.default.exec("arp -a | findstr ...", (error, stdout) => {
Fix
Add { windowsHide: true } as the options argument:
child_process_1.default.exec("arp -a | findstr ...", { windowsHide: true }, (error, stdout) => {
This suppresses the console window on Windows without affecting behavior on other platforms.
Environment
- Windows 11 (10.0.26200)
- Node.js v24.13.0
- ciao consumed as transitive dependency via npm
Reproduction
- Run any Node.js app that imports ciao on Windows
- Observe cmd.exe and conhost.exe windows flashing every ~15-30 seconds
- Process Monitor confirms the source command
One-line fix, happy to PR if preferred.
Description
On Windows,
NetworkManager.jsspawns visiblecmd.exe+conhost.exewindows every ~15-30 seconds due to the ARP discovery call missing thewindowsHideoption.The offending line in
lib/NetworkManager.js:child_process_1.default.exec("arp -a | findstr ...", (error, stdout) => {Fix
Add
{ windowsHide: true }as the options argument:child_process_1.default.exec("arp -a | findstr ...", { windowsHide: true }, (error, stdout) => {This suppresses the console window on Windows without affecting behavior on other platforms.
Environment
Reproduction
One-line fix, happy to PR if preferred.