Skip to content

Bug: Windows heartbeat cmd window not hidden - 'findstr /I /C:"Running"' stays visible #84600

Description

@13884379776l

Bug Description

On Windows, the OpenClaw Gateway heartbeat mechanism spawns a visible cmd.exe window that runs findstr /I /C:"Running" to check scheduled task status. The window stays open with a black screen and the command visible in the title bar.

Reproduction

  1. Run OpenClaw Gateway on Windows
  2. Wait for the heartbeat mechanism to trigger
  3. A black cmd window appears with title findstr /I /C:"Running"

Evidence

  • Process chain: node.exe (Gateway, PID 2876) -> cmd.exe (PID 3616) -> findstr.exe (PID 7464)
  • Script: openclaw-schtasks-restart-*.cmd (in AppData\Local\Temp\openclaw\)
  • Screenshot: Attached

Expected Behavior

The heartbeat check should run silently (no visible window).

OpenClaw Version

  • Version: 2026.5.18 (50a2481)
  • Platform: Windows 11
  • Shell: PowerShell

Root Cause Analysis

The temporary restart script uses findstr /I /C:"Running" without start /min or output redirection, causing a persistent visible window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions