Skip to content

fix(daemon): restart Windows gateways with redirected launcher output - #137374

Merged
steipete merged 7 commits into
openclaw:mainfrom
akagifreeez:fix/schtasks-launcher-redirect-argv
Sep 13, 2026
Merged

steipete merged 7 commits into
openclaw:mainfrom
akagifreeez:fix/schtasks-launcher-redirect-argv

Conversation

@akagifreeez

@akagifreeez akagifreeez commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #137362

What Problem This Solves

Appending output redirection to a Windows Gateway launcher makes stop/restart reject its own listener because CMD redirection syntax is parsed as process arguments. The remaining review finding also allowed an unquoted environment expansion to produce shortened arguments that could match a different process.

User Impact

Windows Scheduled Task installs whose launcher line carries complete, quoted output redirection can restart with exact process ownership checks. Ambiguous commands, including unquoted redirect-target expansions, remain intact and cannot authorize a listener using shortened arguments. The ownership-refusal diagnostic explains how to quote the entire redirect target.

Why This Change Was Made

The launcher reader and writer keep one CMD grammar owner. The scanner removes only a fully validated trailing redirection suffix; process ownership comparison and termination policy remain unchanged. Documentation explains the quoting requirement.

The contributor's commits remain in the branch ancestry, followed by a separate maintainer repair commit. Thanks @akagifreeez (#137374).

Evidence

Current candidate: f8f201dc100fb91fb31b54034e4fa4bb8d4f8953. Its parent bf55d658a65589cb1c0e8769fc979f7143d61a09 has identical production/package inputs; the final commit only moves two regressions into a focused test file.

  • Before the maintainer fix, four new regression cases failed on 4b172a80b694a30e53a96ffca5925ae6db46b3cb: the reader removed percent/bang expansion suffixes, and both production stop/restart paths selected synthetic PID 6262 for taskkill (expected [6262] to deeply equal []).
  • After the fix, node scripts/run-vitest.mjs src/daemon/schtasks.test.ts src/daemon/schtasks.stop.test.ts src/daemon/schtasks.redirect-stop.test.ts src/daemon/schtasks.env-case.real.test.ts passed: 143 passed, 5 Windows-only cases skipped on macOS. The requested schtasks-layout.test.ts does not exist; reader coverage is in schtasks.test.ts.
  • pnpm check:changed passed, including core/test types, targeted lint, formatting, dead-export scans, and repository guards. git diff --check passed.
  • Fresh independent P1 review of the complete staged candidate: scoped-clean.
  • Native Windows CI on the exact final head passed. All six tests in schtasks.env-case.real.test.ts executed without skips: four real CMD/CIM cases and two environment controls. The quoted-target case exercised production termination refusal for a live process with shortened arguments, allowed termination after restoring the quoted launcher, and replacement startup. The unquoted-expansion case also passed against real CMD/CIM. The daemon shard recorded 92 passes with no skips.

The first candidate's CI lint job found that the merge tree pushed schtasks.stop.test.ts to 1,025 counted lines. The final test-only commit moves the new cases to schtasks.redirect-stop.test.ts, preserves their assertions, and leaves the lint threshold unchanged. Both relocated lifecycle cases and both reader cases were re-proved failing with only the expansion guard removed, then passing after exact source restoration. Changed checks and fresh P1 review passed again. Final-head CI is green for f8f201dc100fb91fb31b54034e4fa4bb8d4f8953.

Published updater result and approved proof exception

The real Windows cell ran the installed published 2026.9.3 driver (1391f7cd2d40ab5bbcf2f5f831d3a64f520e72d7) against the packed bf55d658a65589cb1c0e8769fc979f7143d61a09 candidate. The tarball SHA-256 was b7b893bf9bc9ca7b3918a0a1b3567804c61527fc2deed9bee0fe89027958121c. It used a new canonical named profile, isolated npm prefix, task-local Node 24.16.0, a unique Scheduled Task/port, and the baseline-generated supervisor launcher with quoted %TEMP% output redirection to a path containing spaces. The original Gateway was ready immediately before update; no pre-stop or --no-restart was used.

Package staging and all six candidate checks passed: migration rehearsal, Doctor lint, config validation, plugin resolution, migration continuation, and Gateway canary. Activation failed at global install swap after 30,008 ms: Package rollback verification timed out, followed by Package rollback verification failed: retained package tree changed.

The published driver's integrity reader caps the scan at 30 seconds despite the larger update timeout. The baseline scan precedes service stop; without a captured fingerprint, the recovery check reports “changed.” That message does not itself establish corruption. The old installed version, PID, readiness, launcher hash, and redirect remained unchanged. No candidate activation or restart was claimed, and no recovery behavior or timeout was changed to bypass the failure.

Approved narrow proof exception (lead ruling): the failed cell belongs to the known #144712 class in the released 2026.9.3 driver, before candidate activation or Scheduled Task cleanup. Its src/infra/package-update-integrity.ts:14,46–50 caps baseline fingerprinting at 30 seconds. The result cannot evaluate this PR's launch-line parser or cleanup behavior. The class was fixed on main by #144925 (ce6718fd82a492b7c1f2b068e1c68477fd9a8b7f) and #145219 (290613f538dddfae9a90720c4ad559a2a5b330cf): the five-minute fingerprint fix and subsequent measured-budget work remove the released 30-second ceiling while the old Gateway keeps serving. Current main's driver is not affected by that ceiling.

The lead explicitly accepts the exact-head Windows CI (92 daemon-shard passes, all six native fixture tests), native proof of nonmatching-process survival, authorized termination and replacement startup, and the scoped-clean P1 review as the landing evidence for #137374. The exception resolves the remaining ClawSweeper proof/maintainer-decision moves. It does not claim that the failed cell activated the candidate, waive unrelated gates, or establish an older unsupervised-launcher update path. Contributor ancestry and credit remain preserved.

Release-note context: Windows Scheduled Task installs whose launcher line carries output redirection now restart correctly. Thanks @akagifreeez (#137374). Fixes #137362.

During isolated fixture cleanup, the old published CLI also reproduced the original bug: gateway stop --force --json ended the task but refused its surviving listener because ownership could not be verified from the redirected launcher. That result is separate from the updater failure. Exact-owned native termination was used only for teardown. The fixture task/processes/profile/prefix/runtime/cache were removed, the default installation was preserved, and the Windows guest was stopped without restoring a snapshot.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Sep 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:06 PM ET / 22:06 UTC (Revision 10).

ClawSweeper review

What this changes

The PR recognizes complete trailing Windows launcher redirections, preserves ambiguous commands, and adds stop/restart regressions and quoting guidance.

Merge readiness

✅ Ready for maintainer review

The PR remains necessary for legacy Windows launcher ownership checks. The prior expansion defect is fixed, native proof covers the relevant termination boundary, and the recorded narrow upgrade-proof exception satisfies the previous review’s remaining request. No actionable findings remain.

Priority: P2
Reviewed head: f8f201dc100fb91fb31b54034e4fa4bb8d4f8953

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful native boundary evidence, resolved prior findings, and an explicitly recorded upgrade-proof disposition.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The exact-head Windows job exercises the production launcher reader and termination owner through real CMD/CIM, proving nonmatching-process survival, owned-process termination, replacement startup, and redirected output. The captured body explicitly accepts a narrow exception for the separate published-updater failure before activation; successful upgrade activation is not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The exact-head Windows job exercises the production launcher reader and termination owner through real CMD/CIM, proving nonmatching-process survival, owned-process termination, replacement startup, and redirected output. The captured body explicitly accepts a narrow exception for the separate published-updater failure before activation; successful upgrade activation is not claimed.
Evidence reviewed 9 items Introduced parser change and repaired prior finding: The complete launcher module validates the whole command before removing trailing redirections. Lines 131–137 preserve unquoted percent/bang expansions and ambiguous target boundaries, addressing the earlier P1 finding without changing launcher files.
Still necessary on current main: Current main retains stdin-only stripping. Its newer live-owner path can identify modern Gateways, but the explicit legacy fallback still requires exact installed arguments, so redirected older launchers remain relevant. Main-only ownership changes are base evolution, not removals introduced by this PR.
Latest-release comparison: The supplied latest release also contains stripStdinNulRedirect rather than output-redirection normalization; the requested parser repair is not present there.
Findings None None.
Security None None.

How this fits together

Windows Gateway lifecycle commands read the installed launcher to identify processes they may stop. This parser separates shell redirection from process arguments before ownership checks authorize termination and restart.

flowchart TD
  A[Installed Windows launcher] --> B[Validate trailing redirections]
  B --> C[Process arguments]
  D[Live Windows process information] --> E[Verify process ownership]
  C --> E
  E --> F[Terminate owned process and restart]
  E --> G[Refuse unverified process with guidance]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +97, Tests +428, Docs +7. Total +532 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 2 103 6 +97
Tests 4 490 62 +428
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 600 68 +532

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +103/-6; tests +490/-62 Production growth replaces stdin-only stripping with conservative suffix validation; tests cover parsing, lifecycle refusal, and real Windows process effects.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #137362
Summary: This PR is the candidate repair for the paired redirection report; the merged snapshot fallback addresses a separate trigger.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep redirection normalization in the launcher owner while preserving exact legacy-process matching and current main’s live-owner safeguards.

Do we have a high-confidence way to reproduce the issue?

Yes: a redirected launcher without a published live-owner record reaches current main’s exact-argument fallback with shell tokens still included. Source establishes that mismatch; this read-only review did not execute a new reproduction.

Is this the best way to solve the issue?

Yes: repairing the launcher reader preserves the existing ownership boundary, and the native fixture demonstrates both refusal and authorized termination. The documented narrow exception resolves the previously requested upgrade qualification.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against efc3b02d3ed3.

Labels

Label changes:

  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This repairs a deterministic stop/restart failure limited to Windows installations with customized launcher redirection.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The exact-head Windows job exercises the production launcher reader and termination owner through real CMD/CIM, proving nonmatching-process survival, owned-process termination, replacement startup, and redirected output. The captured body explicitly accepts a narrow exception for the separate published-updater failure before activation; successful upgrade activation is not claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The exact-head Windows job exercises the production launcher reader and termination owner through real CMD/CIM, proving nonmatching-process survival, owned-process termination, replacement startup, and redirected output. The captured body explicitly accepts a narrow exception for the separate published-updater failure before activation; successful upgrade activation is not claimed.

Evidence

What I checked:

  • Introduced parser change and repaired prior finding: The complete launcher module validates the whole command before removing trailing redirections. Lines 131–137 preserve unquoted percent/bang expansions and ambiguous target boundaries, addressing the earlier P1 finding without changing launcher files. (src/daemon/schtasks-layout.ts:131, f8f201dc100f)
  • Still necessary on current main: Current main retains stdin-only stripping. Its newer live-owner path can identify modern Gateways, but the explicit legacy fallback still requires exact installed arguments, so redirected older launchers remain relevant. Main-only ownership changes are base evolution, not removals introduced by this PR. (src/daemon/schtasks-process.ts:187, efc3b02d3ed3)
  • Latest-release comparison: The supplied latest release also contains stripStdinNulRedirect rather than output-redirection normalization; the requested parser repair is not present there. (src/daemon/schtasks-layout.ts:41, 3a9d69db306c)
  • Native proof exercises final effects: The inspected native fixture uses real cmd.exe, CIM, a listening child process, and production termination. It checks survival after substituting an ambiguous launcher, successful termination after restoring the quoted launcher, PID disappearance, replacement startup on the same port, and redirected stdout/stderr. The spawn wrapper delegates to the real implementation. (src/daemon/schtasks.env-case.real.test.ts:199, f8f201dc100f)
  • Windows execution identity verified: GitHub reports checks-windows-node-test-1 successful for the exact pinned head at https://github.com/openclaw/openclaw/actions/runs/34783462487/job/103794686567. The captured PR body records all six native fixture cases executing without skips. The log endpoint returned no inspectable body in this review; scenario coverage was checked against the fixture source and captured execution report. (src/daemon/schtasks.env-case.real.test.ts:45, f8f201dc100f)
  • Previous upgrade-proof request explicitly addressed: The captured primary body at sourceRevision f5de0042a6776bf7a7b151ace8353529fff0e4e08331874ad1c8792313d73c64 records a narrow lead-approved exception for the published 2026.9.3 updater failing before activation. It accepts the native termination evidence without claiming a successful upgrade or older unsupervised-launcher handoff. This directly answers the previous rank-up request for evidence or an explicit exception. (f8f201dc100f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fszcd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-13T19:44:27.267Z sha 35e93ff :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-13T19:58:50.786Z sha d421cc0 :: needs real behavior proof before merge. :: [P1] Reject unresolved target expansions before stripping redirections
  • reviewed 2026-09-13T20:11:18.968Z sha 4b172a8 :: needs real behavior proof before merge. :: [P1] [P1] Reject unresolved target expansions before stripping redirections
  • reviewed 2026-09-13T20:27:20.783Z sha 4b172a8 :: needs real behavior proof before merge. :: [P1] [P1] Reject unresolved target expansions before stripping redirections
  • reviewed 2026-09-13T20:39:12.993Z sha 4b172a8 :: needs real behavior proof before merge. :: [P1] [P1] Reject unresolved target expansions before stripping redirections
  • reviewed 2026-09-13T21:07:01.726Z sha bf55d65 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-13T21:29:10.786Z sha f8f201d :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-13T21:51:05.296Z sha f8f201d :: blocked before merge. :: none

Normalize complete trailing launcher redirections at the parser boundary.
Leave compound commands, malformed suffixes, escaped quotes/operators,
ambiguous handle digits, and unquoted filename delimiters unchanged.
Keep exact process ownership, environment handling, and executable selection.

Integrate the contributor fix with current main to retain effective service
inspection and the existing native Windows CI route. Add reader and lifecycle
regressions plus real cmd.exe/CIM proof without changing workflows.

Fixes openclaw#137362

Co-authored-by: akagifreeez <[email protected]>
@vincentkoc
vincentkoc requested review from a team and steipete as code owners September 13, 2026 19:22
@vincentkoc vincentkoc changed the title fix(daemon): strip trailing output redirections from the parsed Windows launcher command fix(daemon): restart Windows gateways with redirected launcher output Sep 13, 2026
@github-actions

github-actions Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Security-sensitive guard cleared

This PR no longer has blocked security-sensitive file changes. A future security-sensitive change requires a fresh /allow-security-sensitive-change comment after the guard blocks that new head SHA.

  • Current SHA: f8f201dc100fb91fb31b54034e4fa4bb8d4f8953

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 13, 2026
@vincentkoc vincentkoc closed this Sep 13, 2026
@vincentkoc vincentkoc reopened this Sep 13, 2026
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Sep 13, 2026
@steipete

Copy link
Copy Markdown
Contributor

Maintainer review at 35e93ffddf9 (independent Codex review against current main) under the update-reliability campaign — thanks for the source-proven repro and the fix, this is the right owner (src/daemon/schtasks-layout.ts is where the launch line is written, so it should be where it is read).

One P1 before this can land:

Reject unresolved expansions before stripping redirection targets — src/daemon/schtasks-layout.ts:131. The target validation accepts an unresolved %VARIABLE% reference in an unquoted redirect target. When that variable expands to a path containing spaces, CMD leaves filename fragments in the process's real argv, while this helper removes the entire redirection suffix and returns only the original gateway arguments. The installed-command ownership check could then authorize a different listener against the shortened argv, and this is the path that decides what restart is allowed to terminate. Fail closed on unresolved expansions unless their effective CMD boundaries can be established (quoted target, or expansion against the task's environment); validating only the literal target does not establish exact ownership. A regression for an unquoted %USERPROFILE%-style target with a space in the expansion would pin it.

Two notes: the Dependency Guard comment above compared against a stale base — your diff contains no lockfile or dependency changes, so nothing to do there. And the branch is maintainer-editable, so if you prefer, say so and we will push the fix under your credit; otherwise the next round runs on your next push and we land it right after.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 13, 2026
@steipete

Copy link
Copy Markdown
Contributor

Round 2 at 4b172a80b69: the P1 from the round-1 comment is unchanged. As offered, we are pushing the fix to this branch now under maintainer edits, with your code credit preserved. Please hold further pushes until it lands.

Preserve launch lines with unquoted percent or delayed-expansion targets
instead of shortening the arguments used for process ownership. Explain
how to quote a redirect target when stop or restart cannot verify a listener.

Cover reader and stop/restart refusal with a regression that previously
selected a different same-port process for taskkill. Extend native Windows
proof to cover actual termination, nonmatching-process survival, and restart.

Windows Scheduled Task launchers with quoted output redirection keep their
exact process ownership checks. Thanks @akagifreeez (openclaw#137374). Fixes openclaw#137362.
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L and removed size: M labels Sep 13, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@steipete, honoring your request to hold further pushes.

The separate Linux CI fixture repair landed in #147398 as 7471ac64552168c09ea715739d8d52e43dc67a45. Its exact-head CI run 34781781708, including required openclaw/ci-gate, passed; clean-machine focused proof was 103 passed, 0 failed, 0 skipped.

Our Windows upgrade cell tested package 4b172a80b694a30e53a96ffca5925ae6db46b3cb, not your bf55d658a65589cb1c0e8769fc979f7143d61a09. Starting from published 2026.9.3 (1391f7cd2d40ab5bbcf2f5f831d3a64f520e72d7), npm staging, migration rehearsal/continuation, Doctor lint, config validation, plugin resolution, and the candidate Gateway canary passed. The installed 9.3 updater then hit its 30-second baseline fingerprint deadline (swap-step duration: 30,003 ms), before beforeActivate or rename. The secondary "retained package tree changed" message does not establish corruption; before/after version and build metadata still reported 9.3; package-tree integrity was not established.

Candidate activation, retained-launcher handoff, and post-upgrade ownership/restart remain unproven. Guest cleanup failed to stop one recorded process; verified VM teardown completed containment at 21:11:28 UTC on September 13, 2026. No new retry from this lane is planned, and this is not a claim that bf55 tests or exact-head CI passed. Leaving the PR body, branch, and landing with you.

Keep the stop/restart test file within the line limit when merged with current main. Retain both refusal regressions in a focused file using the existing daemon fixtures; no production behavior or lint threshold changes.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 13, 2026
@steipete
steipete merged commit a2c929b into openclaw:main Sep 13, 2026
250 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
…openclaw#137374)

Windows Scheduled Task installs whose launcher line carries output redirection now restart correctly. Parse validated trailing CMD redirections at the launcher writer/reader boundary while preserving quoted arguments and rejecting ambiguous unquoted environment expansions as shortened ownership evidence.

Keep exact process ownership checks. Add a quoting hint to refusal diagnostics and regression coverage for reader behavior, stop/restart refusal, real CMD/CIM expansion, nonmatching-process survival, authorized termination, and replacement startup.

Validation: focused daemon tests and changed checks pass; P1 review is scoped-clean; exact-head CI is green, including 92 Windows daemon-shard passes and all six native fixture tests.

Lead-approved narrow proof exception: the released 2026.9.3 updater failed before candidate activation at its 30-second baseline fingerprint cap (package-update-integrity.ts:14,46-50), the known openclaw#144712 class fixed on main by openclaw#144925 and openclaw#145219. The failed cell remains recorded in the PR; current main's driver is not affected by that released cap.

Thanks @akagifreeez (openclaw#137374). Fixes openclaw#137362.

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: akagifreeez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

3 participants