-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
Windows: exec tool creates visible console windows (conhost flash) #22851
Copy link
Copy link
Closed
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Problem
On Windows, every exec tool call spawns a visible console window (conhost.exe) that briefly flashes on screen. When cron jobs run frequently (e.g. every 10 minutes), this creates a distracting flash on the user's desktop.
Root Cause
Node.js child_process.spawn() on Windows creates a visible console window by default. The fix is to pass windowsHide: true in the spawn options.
Environment
- Windows 11 Pro (26200)
- Node v25.6.0
- OpenClaw running as a user-level process (not a service)
Expected Behavior
All exec tool calls should run without any visible window. The windowsHide: true option in Node.js spawn suppresses console window creation on Windows.
Impact
- Every cron job that uses exec flashes a black window
- Agents calling exec during conversations also flash
- Orphaned conhost processes accumulate (47 found in one session)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.