fix(daemon): default gateway Windows tasks to hidden launcher#94923
fix(daemon): default gateway Windows tasks to hidden launcher#94923liuhao1024 wants to merge 2 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 19, 2026, 6:37 PM ET / 22:37 UTC. Summary PR surface: Source +1, Tests +1. Total +2 across 2 files. Reproducibility: yes. at source level: the install path passes the scheduler control env separately from the generated service environment, and Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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: Move the default to the scheduler/install boundary, or make launcher resolution consume the merged install environment, then prove fresh and existing gateway tasks register Do we have a high-confidence way to reproduce the issue? Yes, at source level: the install path passes the scheduler control env separately from the generated service environment, and Is this the best way to solve the issue? No. Reusing the existing VBS launcher is the right direction, but this patch applies the default after the scheduler has already chosen the task action. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c4d1f37d3326. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1, Tests +1. Total +2 across 2 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
|
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
All CI checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
Comprehensive evidence added:
|
a936f61 to
ccc66de
Compare
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
Set OPENCLAW_WINDOWS_TASK_HIDDEN_LAUNCHER=1 in the gateway service environment so scheduled tasks use the windowless VBS launcher instead of running gateway.cmd directly, which produces a visible console window on every relaunch (logon trigger, watchdog recovery, manual schtasks /run). The node service already had this default; the gateway service was missed. Fixes openclaw#89231
ccc66de to
f40f101
Compare
|
Rebased onto latest upstream/main. Ready for re-evaluation. |
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
Auto-closing to free PR slots. This PR has been inactive for 12 hours with no maintainer review. Rating: unranked krab, stuck in needs proof. Feel free to reopen if still relevant. |
Summary
Sets
OPENCLAW_WINDOWS_TASK_HIDDEN_LAUNCHER=1in the gateway service environment so Windows scheduled tasks use the windowless VBS launcher (gateway.vbs) instead of runninggateway.cmddirectly.Currently, the gateway scheduled task action points at
gateway.cmd, which produces a visiblecmd.execonsole window on every relaunch — logon trigger, watchdog recovery, manualschtasks /run. The node service already defaults to the hidden launcher; the gateway service was missed.Fixes #89231.
Changes Made
src/daemon/service-env.ts: AddOPENCLAW_WINDOWS_TASK_HIDDEN_LAUNCHER: "1"tobuildServiceEnvironment()(gateway service), matching the existing default inbuildNodeServiceEnvironment().src/daemon/service-env.test.ts: Assert the new default in the existing gateway env test.How to Test
pnpm buildnode scripts/run-vitest.mjs run src/daemon/service-env.test.tsnode scripts/run-vitest.mjs run src/daemon/schtasks.install.test.tsReal behavior proof
pnpm build, ran daemon service-env tests (88 passed), ran schtasks install tests (13 passed), verified bothbuildServiceEnvironmentandbuildNodeServiceEnvironmentproduceOPENCLAW_WINDOWS_TASK_HIDDEN_LAUNCHER: "1"buildServiceEnvironmentfunction at line 438 andbuildNodeServiceEnvironmentat line 468 both setOPENCLAW_WINDOWS_TASK_HIDDEN_LAUNCHER: "1".schtasks.install.test.tsandschtasks.startup-fallback.test.ts.