-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
doctor/status: false positive 'Other gateway-like services detected' for active Windows Scheduled Task #90494
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Description
The dashboard /
openclaw status"Other gateway-like services detected" check produces a false positive on Windows: it flags the Scheduled Task that launched the currently running gateway as if it were a separate, duplicate service. The suggested cleanup hint (schtasks /Delete /TN "OpenClaw Gateway" /F) would, if followed, remove the user's auto-start on logon mechanism — which is exactly what the recommended Windows install creates.This is the Windows analogue of #52510 (which covered the macOS LaunchAgent variant of the same false-positive class).
Steps to Reproduce
\OpenClaw Gateway, runsC:\Users\<user>\.openclaw\gateway.cmdat logon — what the doctor's--fixflow installs, when it works).:18789). Confirm via:The task's status will read
Running, with aLast Run Timematching the gateway start, andTask To Runpointing at the install'sgateway.cmd.Expected Behavior
The detector should correlate the listed Scheduled Task with the currently running gateway process. If the task's command line / executed script matches the parent process of the listening gateway (or matches the canonical install's
gateway.cmdpath), it should be treated as the live launcher, not as a separate gateway-like service. No "Other gateway-like services detected" warning, and noschtasks /Deletecleanup hint, when the task is the active launcher.The cleanup hint should only surface for genuinely orphaned tasks — e.g.:
Task To Runpoints to a stale path (different user profile, removed install, etc.)DisabledorReadybut whose target no longer existsActual Behavior
The detector lists the task that launched the live gateway as "another gateway-like thing," and recommends deleting it. A user who follows the hint will:
Suggested Fix
In the Windows detection path, before listing a task:
Task To Run(with environment expansion) to an absolute script path.gateway.cmdpath and/or walk up from the running gateway PID to confirm whether the task is its launcher (via parent process or PPID chain —cmd.exe→gateway.cmd→ gateway process).Active launcher: \OpenClaw Gateway (scheduled task)), and suppress theschtasks /Deletecleanup hint.A minimal, lower-risk version: simply suppress the hint (but still log the task as info) when the task's command line resolves to the canonical install's
gateway.cmdand the gateway is currentlyrunningper the runtime probe.Environment
2026.5.28 (e932160)mcwindev0.0.0.0:18789,bind=lan\OpenClaw Gateway, At-logon, runsC:\Users\dlmcm\.openclaw\gateway.cmd, Status: Running, Last Run Time6/4/2026 8:43:47 PMRelated
--fixleaves Startup-folder fallback stale and doesn't install Scheduled Taskschtasks /Runcannot relaunch