You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Install OpenClaw on Windows with the standard Scheduled Task setup (task name \OpenClaw Gateway, runs C:\Users\<user>\.openclaw\gateway.cmd at logon — what the doctor's --fix flow installs, when it works).
Log in and let the scheduled task start the gateway as normal.
Open the dashboard status panel (or run the equivalent status query). Observe output similar to:
Runtime: running (last run 267009, last run time 6/4/2026 8:43:47 PM)
Connectivity probe: ok
Capability: admin-capable
Listening: 0.0.0.0:18789
Other gateway-like services detected (best effort):
- \OpenClaw Gateway (system, task: \OpenClaw Gateway, run: C:\Users\dlmcm\.openclaw\gateway.cmd)
Cleanup hint: schtasks /Delete /TN "OpenClaw Gateway" /F
The "detected" task is the same task that launched the running gateway process (pid currently listening on :18789). Confirm via:
schtasks /Query /TN "OpenClaw Gateway" /V /FO LIST
The task's status will read Running, with a Last Run Time matching the gateway start, and Task To Run pointing at the install's gateway.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.cmd path), it should be treated as the live launcher, not as a separate gateway-like service. No "Other gateway-like services detected" warning, and no schtasks /Delete cleanup hint, when the task is the active launcher.
The cleanup hint should only surface for genuinely orphaned tasks — e.g.:
A task whose Task To Run points to a stale path (different user profile, removed install, etc.)
A task that is Disabled or Ready but whose target no longer exists
A task pointing at a different gateway port / install root than the running gateway
Actual 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:
Silently lose auto-start on next logon.
Be left with a gateway that only runs in the current login session (and won't be brought back by the documented Windows install path).
In the Windows detection path, before listing a task:
Resolve the task's Task To Run (with environment expansion) to an absolute script path.
Compare against the install's known gateway.cmd path 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).
If correlated, skip the entry (or downgrade to an info line: Active launcher: \OpenClaw Gateway (scheduled task)), and suppress the schtasks /Delete cleanup 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.cmd and the gateway is currently running per the runtime probe.
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