Skip to content

Windows: exec spawns steal focus from active window #51837

@junkyard-rules

Description

@junkyard-rules

Description

On native Windows (not WSL), commands spawned via the exec tool open visible command windows that steal focus from whatever the user is actively working on. This is disruptive during normal use — typing gets interrupted, windows flash, etc.

Current behavior

  • exec tool spawns processes that create visible console windows on Windows
  • These windows steal focus from the active application
  • Particularly disruptive during heartbeat checks when the user is working

Expected behavior

All exec spawns should use windowsHide: true (or equivalent) by default on Windows, so command windows never appear or steal focus.

Notes

  • ACP agent spawns and daemon processes already use windowsHide: true — this is just missing for regular exec calls
  • Platform: Windows 11 (MINGW64_NT-10.0-26200), native install (not WSL)
  • OpenClaw version: v2026.3.13

Environment

  • OS: Windows 11 (build 26200)
  • Node: v24.14.0
  • Shell: PowerShell

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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