-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Windows: openclaw gateway start opens visible terminal window (Scheduled Task LogonType=InteractiveToken) #99502
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Environment
Problem
When running
openclaw gateway startor afteropenclaw gateway install --force, the Gateway service is installed as a Windows Scheduled Task with<LogonType>InteractiveToken</LogonType>, which causes a cmd.exe terminal window to pop up visibly.The service runs via
gateway.cmdwhich launchesnode.exedirectly. Because the task's LogonType is InteractiveToken, a command prompt window appears on the desktop each time the gateway starts or restarts.Expected behavior
openclaw gateway startshould start the gateway silently without any visible terminal window, like a proper background service on Windows.Analysis
The schtasks XML after install shows:
Changing the LogonType to
S4U(service-for-user, session 0, no GUI) or using the already-created VBS launcher as the task action would fix this.Note: The installer already creates a VBS launcher in
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OpenClaw Gateway.vbsthat usesWScript.Shell.Run ..., 0, False(hidden window) — so the fix could be as simple as using that VBS as the task action instead ofgateway.cmddirectly.Workaround
Start silently with the VBS launcher: