fix(daemon): default Windows tasks to hidden launcher#89380
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 15, 2026, 6:55 AM ET / 10:55 UTC. Summary PR surface: Source +1, Tests +33. Total +34 across 3 files. Reproducibility: yes. at source level: current main and v2026.6.6 leave the gateway Scheduled Task on Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land the VBS default after native Windows proof or explicit maintainer acceptance is recorded, Windows launcher docs are aligned, and cleanup removes both task and Startup-folder launcher variants. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main and v2026.6.6 leave the gateway Scheduled Task on Is this the best way to solve the issue? Yes, reusing the existing VBS launcher is the narrow fix for the reported launcher bug. It is not merge-ready until native proof, docs alignment, task-launcher cleanup, and compatibility acceptance are handled. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e7ee1c55b433. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1, Tests +33. Total +34 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49516660b4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
4951666 to
d998514
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d998514e23
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Rebase PR #89380 onto current upstream/main and preserve cleanup of stale startup launcher variants.
9535ce2 to
0bf8218
Compare
|
Closing this stale draft PR because it has been open for a long time without merge. I can reopen or resubmit if needed. |
Summary
gateway.vbshidden launcher instead of runninggateway.cmddirectly.OPENCLAW_WINDOWS_TASK_HIDDEN_LAUNCHERvalues.Fixes #89231.
Verification
node scripts/run-vitest.mjs src/daemon/schtasks.install.test.tsnode scripts/run-vitest.mjs src/daemon/schtasks.startup-fallback.test.ts src/daemon/schtasks.test.ts src/daemon/schtasks.stop.test.ts src/daemon/schtasks-exec.test.tsnode scripts/run-oxlint.mjs src/daemon/schtasks.ts src/daemon/schtasks.install.test.tsgit diff --checkpnpm tsgo:corewas attempted after installing/linking dependencies, but this checkout reports existing unrelated type errors insrc/agents/sessions/auth-storage.ts,src/agents/utils/image-resize.ts,src/gateway/managed-image-attachments.ts,src/media/image-ops.ts, andsrc/media/web-media.ts.Duplicate check
gh pr list --repo openclaw/openclaw --state open --search '89231 Windows scheduled task visible console gateway.cmd windowless launcher gateway.vbs' --json number,title,url,headRefName,author --limit 20->[]gh pr list --repo openclaw/openclaw --state open --head leno23:leno23/fix-windows-task-hidden-launcher-89231 --json number,title,url --limit 10->[]Real behavior proof
Behavior addressed: Windows Scheduled Task creation/update now defaults the task action to the existing hidden
.vbslauncher instead ofgateway.cmd, preventing the cmd console from being the default launch target.Real environment tested: macOS 26.3.2 local checkout running the real OpenClaw daemon installer code path with a local
schtaskscommand shim to capture the Scheduled Task action arguments.Exact steps or command run after this patch:
node --import tsx /tmp/openclaw-hidden-launcher-proof.mjsEvidence after fix: terminal output from the after-patch OpenClaw daemon installer run:
Observed result after fix: The generated launcher file is
gateway.vbs, it containsWScript.Shell, it runs the generatedgateway.cmd, and the captured Scheduled Task/TRaction usesgateway.vbsby default.What was not tested: A live Windows 11 desktop Scheduled Task launch with visual confirmation that no
cmd.exewindow appears.