You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accept forwarded launches and deep links before the startup update prompt #2073
P2Normal priority bug or improvement with limited blast radius.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.leverLever delivery tracking issue
The single-instance mutex is taken early (App.xaml.cs ~600), but the forwarded-activation listener starts only at ~1107. That is after onboarding and after CheckOrdinaryStartupUpdateAsync, which awaits UpdateDialog with no timeout.
A second launch (Start menu, openclaw:// link, or the installer's migration-shutdown message) retries the pipe for about 5 s, ignores the result, and exits.
Result in unpackaged release builds with an update available:
relaunching does nothing
deep links are dropped
the global hotkey is dead until the dialog is answered
Related:_globalHotkey has two writers. Startup (_globalHotkey = new GlobalHotkeyService() at ~1112) overwrites a hotkey that a settings save already registered during that wait. That leaves an orphaned registration that disabling the hotkey cannot remove.
Fix:
Start the listener before the update check. Forwarded plans already marshal to the UI thread.
Register the hotkey through ApplyGlobalHotkey, so it has a single writer.
Done when:
AppRefactorContractTests.Startup_Order_PreservesInitializationInvariants requires the listener before the update check (it currently pins the old order)
a contract test forbids the direct hotkey construction
Summary
Current main still delays activation IPC and hotkey registration behind the update prompt, and startup can overwrite an existing hotkey service; this collaborator-authored issue remains actionable.
Reproducibility: Source establishes the failure: leave an ordinary unpackaged Release update prompt unanswered, then launch again or send openclaw://settings; the listener has not started and forwarding exhausts its retries before the secondary process exits. No live reproduction or tests were run.
Next step
Within the existing maintainer audit lane, fix startup ordering and hotkey reuse after establishing failing regressions for activation during a held update prompt and hotkey disable after an intervening settings save.
Review details
Best possible solution:
Initialize activation reception and hotkeys once their dependencies are ready, before awaiting the update prompt, while preserving existing routing and shutdown ownership.
Do we have a high-confidence way to reproduce the issue?
Source establishes the failure: leave an ordinary unpackaged Release update prompt unanswered, then launch again or send openclaw://settings; the listener has not started and forwarding exhausts its retries before the secondary process exits. No live reproduction or tests were run.
Is this the best way to solve the issue?
The proposed ordering repair and reuse of ApplyGlobalHotkey fit the existing owners; regression coverage must also retain native setup receipt bypass, installer-exit handling, current-user IPC, confirmation, and orderly shutdown.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
No native Windows run exercised an unanswered release update prompt or the settings-save hotkey interleaving during this read-only review.
Codex review notes: model internal, reasoning medium; reviewed against e70292487958.
Label changes
Label changes:
add P2: The source-proven defect affects startup activation in unpackaged release builds with an outstanding update prompt, with an in-product recovery through closing or answering that prompt.
add impact:ux-friction: Start-menu launches and deep links silently fail during the prompt, and hotkeys can remain registered after disabling them when startup replaces a previously registered service.
add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
add clawsweeper:source-repro: Current issue advisory state selects this label.
Label justifications:
P2: The source-proven defect affects startup activation in unpackaged release builds with an outstanding update prompt, with an in-product recovery through closing or answering that prompt.
impact:ux-friction: Start-menu launches and deep links silently fail during the prompt, and hotkeys can remain registered after disabling them when startup replaces a previously registered service.
Evidence reviewed
What I checked:
Current default branch retains the defect: GitHub main and the checkout both resolve to e702924. App awaits CheckOrdinaryStartupUpdateAsync at line 1096, starts the listener at 1107, and directly replaces _globalHotkey at 1112. (src/OpenClaw.Tray.WinUI/App.xaml.cs:1096, e70292487958)
Prompt can outlast forwarding retries: UpdateCoordinator awaits dialog.ShowAsync; UpdateDialog completes its task only when its window closes. ActivationRouter makes five connection attempts with 100 ms retry delays and a 1000 ms connection timeout per attempt; the secondary-instance branch discards the result and exits. Packaged, development, and Debug builds skip the release update prompt. (src/OpenClaw.Tray.WinUI/Services/ActivationRouter.cs:65, e70292487958)
Existing hotkey ownership seam: ApplyGlobalHotkey reuses _globalHotkey with ??= and removes then reattaches event handlers. Startup instead assigns a fresh service without disposing the previous one, whose dedicated message-loop thread and native registrations can remain alive. (src/OpenClaw.Tray.WinUI/App.SettingsChangeCoordinator.cs:113, e70292487958)
Tests preserve the problematic ordering: Startup_Order_PreservesInitializationInvariants explicitly requires the update check before listener startup. The existing late-listener test delays startup by only 1200 ms, covering a bounded race rather than an unanswered prompt; native setup receipt tests separately protect update bypass and installer-exit behavior. (tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs:96, e70292487958)
Maintainer-authored audit lane: The author association is COLLABORATOR, and the open same-author parent Fix dangerous implicit state machines (audit lanes) #2071 explicitly tracks this startup defect as lane 3. Discussion contains review-status notices rather than a resolution; searches found no open fix PR for this lane.
How this review workflow works
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; those execution lanes are retired.
Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Reviewed November 8, 2026, 1:28 AM ET / 06:28 UTC.
P2Normal priority bug or improvement with limited blast radius.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.leverLever delivery tracking issue
Activity
clawsweeper commentedon Nov 8, 2026
Codex review: this still needs some work.
Summary
Current main still delays activation IPC and hotkey registration behind the update prompt, and startup can overwrite an existing hotkey service; this collaborator-authored issue remains actionable.
Reproducibility: Source establishes the failure: leave an ordinary unpackaged Release update prompt unanswered, then launch again or send openclaw://settings; the listener has not started and forwarding exhausts its retries before the secondary process exits. No live reproduction or tests were run.
Next step
Within the existing maintainer audit lane, fix startup ordering and hotkey reuse after establishing failing regressions for activation during a held update prompt and hotkey disable after an intervening settings save.
Review details
Best possible solution:
Initialize activation reception and hotkeys once their dependencies are ready, before awaiting the update prompt, while preserving existing routing and shutdown ownership.
Do we have a high-confidence way to reproduce the issue?
Source establishes the failure: leave an ordinary unpackaged Release update prompt unanswered, then launch again or send openclaw://settings; the listener has not started and forwarding exhausts its retries before the secondary process exits. No live reproduction or tests were run.
Is this the best way to solve the issue?
The proposed ordering repair and reuse of ApplyGlobalHotkey fit the existing owners; regression coverage must also retain native setup receipt bypass, installer-exit handling, current-user IPC, confirmation, and orderly shutdown.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against e70292487958.
Label changes
Label changes:
P2: The source-proven defect affects startup activation in unpackaged release builds with an outstanding update prompt, with an in-product recovery through closing or answering that prompt.impact:ux-friction: Start-menu launches and deep links silently fail during the prompt, and hotkeys can remain registered after disabling them when startup replaces a previously registered service.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.Label justifications:
P2: The source-proven defect affects startup activation in unpackaged release builds with an outstanding update prompt, with an in-product recovery through closing or answering that prompt.impact:ux-friction: Start-menu launches and deep links silently fail during the prompt, and hotkeys can remain registered after disabling them when startup replaces a previously registered service.Evidence reviewed
What I checked:
src/OpenClaw.Tray.WinUI/App.xaml.cs:1096, e70292487958)src/OpenClaw.Tray.WinUI/Services/ActivationRouter.cs:65, e70292487958)src/OpenClaw.Tray.WinUI/App.SettingsChangeCoordinator.cs:113, e70292487958)tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs:96, e70292487958)src/OpenClaw.Tray.WinUI/Services/ActivationRouter.cs:16, 169afab4be58)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 8, 2026, 1:28 AM ET / 06:28 UTC.