Repository navigation
In review
In review
Copy link
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Description
Summary
MigrateLegacyBackgroundLaunch in installer.iss updates an argument-free startup task with:
schtasks /Change /TN "<task>" /TR "\"<exe>\" --background"
It runs through Exec(..., SW_HIDE, ewWaitUntilTerminated, ...). For the task I tested, schtasks prompts on its hidden console for Please enter the run as password for <user>: and waits. The upgrade therefore never finishes.
Reproduction (Windows 11 Home 26200, unsigned Dev-identity builds from source)
- Install a
v2026.11.3Dev build. - From an elevated prompt, create the pre-feat(workspace): add native Home and Sessions workspace #1541 argument-free task:
schtasks /Create /TN "OpenClaw Companion (Dev)" /TR "\"<install>\OpenClaw.Tray.WinUI.exe\"" /SC ONLOGON /F. - Run a newer Dev installer non-elevated:
/SILENT /SUPPRESSMSGBOXES /NORESTART /LOG=….
Result.
- Files are installed and the log reaches
Installation process succeeded. - Setup then stays at
ssPostInstallwith a childschtasks.exe /Change …running. - I waited over 6 minutes. After
schtasks.exewas ended, the log showedCould not migrate startup task. Re-enable Start with Windows in Settings.and setup exited.
The same command run non-elevated with redirected output: it did not exit within 15 s; stderr was Please enter the run as password for <user>:; the task was unchanged.
Scope
- The code is the same in
v2026.11.3(66b9b5a) and current main. - It only runs for a task whose single action is this installation's executable with empty arguments.
- On this machine such a task can only exist if an elevated process created it, because non-elevated
/Create /SC ONLOGONis denied. I could not test a task a standard user created on a machine that allows it.
Possible directions (not tested)
- Bound the wait: use
ewNoWaitplus a timeout, or giveschtasksa closed stdin, so the migration fails closed with its existing log line. - Or change the action through the Task Scheduler COM object (
RegisterTaskDefinitionwithTASK_UPDATE) instead ofschtasks /Change. The migration already uses that object to read the task.
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Nov 18, 2026
Codex review: this still needs some work.
Summary
This issue remains valid on current main, and an open PR explicitly owns the fix, so it should stay open until that PR is resolved.
Reproducibility: Current source establishes the hidden, unbounded synchronous wait; the reporter supplies the Windows task shape and password-prompt reproduction, corroborated in the linked PR, but this review ran no native reproduction or tests.
Regression provenance
Possible regression — suspected (reviewed change). No predecessor PR is attributed.
Root-cause cluster
Relationship:
canonicalCanonical: #2320
Summary: This issue owns the installer hang, and the linked open PR directly targets its blocking migration call.
Members:
fixed_by_candidate: fix: finish Companion upgrades that hung on the old startup task #2373 - Explicitly closes this issue and replaces the exact hidden interactive command.adjacent_distinct: fix(setup): autostart from setup opens the window at logon #1963 - Repairs setup autostart registration and inspection; its upgrade measurements exposed this separate installer hang.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
Review and complete signed upgrade validation for #2373 (fix: finish Companion upgrades that hung on the old startup task), including visible recovery guidance for refused migration, before closing this issue.
Review details
Best possible solution:
Complete the linked PR’s signed-installer validation and land its noninteractive migration with visible Settings recovery when Windows refuses the update.
Do we have a high-confidence way to reproduce the issue?
Current source establishes the hidden, unbounded synchronous wait; the reporter supplies the Windows task shape and password-prompt reproduction, corroborated in the linked PR, but this review ran no native reproduction or tests.
Is this the best way to solve the issue?
The linked PR addresses the existing migration owner directly through Task Scheduler COM, retaining ownership checks and handling denied updates without interactive child-process machinery; signed-artifact acceptance remains necessary.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against adb86e04ae21.
Label changes
Label changes:
P0: The specified UX override applies: an affected upgrade cannot finish, and recovery requires identifying and terminating a hidden child process.impact:ux-release-blocker: The installer offers no in-product way past the hidden password prompt.clawsweeper:linked-pr-open: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.P2: Current review triage priority is P0, so this older priority label is no longer current.clawsweeper:queueable-fix: Current issue advisory state no longer selects this label.clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.Label justifications:
P0: The specified UX override applies: an affected upgrade cannot finish, and recovery requires identifying and terminating a hidden child process.impact:ux-release-blocker: The installer offers no in-product way past the hidden password prompt.impact:crash-loop: The installer suffers a demonstrated process-level hang.Evidence reviewed
What I checked:
installer.iss:538, adb86e04ae21)installer.iss:506, 66b9b5a559a0)tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs:72, adb86e04ae21)installer.iss, 3a58bf34902f)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 26, 2026, 12:23 AM ET / 05:23 UTC.