Skip to content

Windows: exec tool creates visible console windows (conhost flash) #22851

@brownser

Description

@brownser

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions