Repository navigation
fix: accept forwarded launches during startup update prompts - #2080
Conversation
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesStarts forwarded activation reception and applies the existing hotkey owner before awaiting the startup update prompt. Example: An unpackaged Release update prompt remains open when another launch requests openclaw://settings.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this collaborator-authored PR makes a focused repair to a startup defect still present on main; no introduced correctness bug was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherApp composes startup services; ActivationRouter receives current-user pipe messages and dispatches typed routes onto the UI thread, while ApplyGlobalHotkey manages native hotkey registration. flowchart TD
A[App startup] --> B[Initialize existing services]
B --> C[Start ActivationRouter listener]
B --> D[ApplyGlobalHotkey]
C --> E[Await startup update prompt]
D --> E
F[Secondary launch] --> C
C --> G[UI route dispatch]
Technical reviewBest possible solution: Use the existing activation listener and hotkey owner before the update await while preserving service readiness, routing, confirmation, and shutdown ownership. Do we have a high-confidence way to reproduce the issue? Main awaits UpdateDialog closure before starting the listener; a secondary launch retries for a bounded interval and exits, establishing the dropped-launch path without running target code. Is this the best way to solve the issue? The production diff is the smallest complete repair: change startup ordering and reuse ApplyGlobalHotkey, with no new service, state, configuration, or competing route. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e70292487958. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 8, 2026, 3:15 AM ET / 08:15 UTC. |
|
Hi @karkarl! I'm a Copilot triage bot posting for Scott (I'm not Scott). He asked me to assign this PR to you and see if you'd be up for reviewing it and merging it when you're happy with it. This is one of five small fixes from the state machine audit in #2071 (Fix dangerous implicit state machines (audit lanes)). This one keeps forwarded launches, deep links and the global hotkey working while the startup update prompt is open, instead of dropping them. CI note: CI is green here, so this might be the easiest one of the five to start with. No rush at all, and please feel free to ask for changes or push back. Thank you so much! |
PR cleanup reviewReviewed head: Source cleanup review at 69a1f27 against main e59374c: the early activation listener and reuse of ApplyGlobalHotkey are still useful changes, and current-head CI is green. The remaining acceptance gap is the exact scenario: a forwarded second launch while a real startup update prompt is pending, plus the preserved hotkey behavior. The existing Debug fixture skips update checking, so it is not that proof. Please retain this PR and add current-head Release-path evidence before landing. Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass. |
|
Hi @karkarl, I'm a Copilot triage agent helping the maintainers overnight (I'm not Scott). Scott asked for your review on this one, so I did not merge it. I only gathered evidence to make your look quicker. Validated locally (ARM64) on head
The one gap I could not close: no real unpackaged Release update prompt was exercised (the startup update check is skipped for isolated runs, and I did not want to touch a real install overnight). A quick manual check would settle it: launch a non-isolated build with an update pending, then start a second launch with The Gate on this head is green but dates from Nov 8, so it predates today's |
Co-authored-by: bkudiess <[email protected]>
Closes #2073
Related: #2071
What Problem This Solves
Fixes forwarded launches and deep links being dropped while a startup update prompt is open.
User Impact
User impact: Companion can respond to forwarded launches and its global hotkey while the update prompt is pending.
Why This Change Was Made
Startup starts the existing current-user listener and applies the hotkey through its settings owner before waiting for the update check.
Evidence
The startup-order and hotkey-owner guards failed before the fix and pass afterward. Named-pipe tests deliver ordinary and deep-link launches during a synthetic pending update. An isolated current-build app received both pipe payloads; the Settings route opened General. A real release update prompt was not exercised.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: current-head forwarded activation and native navigation; live isolated fixture checks below are partial, not a complete pool run.Validation
.\build.ps1: passed.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 4,876 passed, 24 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 5,297 passed, 0 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName~Startup_Order_PreservesInitializationInvariants|FullyQualifiedName~Startup_GlobalHotkey_UsesTheSettingsOwner|FullyQualifiedName~ForwardedLaunch_IsDispatchedWhileStartupUpdateCheckIsPending|FullyQualifiedName~MigrationShutdown_UsesCurrentUserIpcWithoutCreatingADeepLinkRoute': 5 passed.69a1f27b0f8452c3416c99e0026bc2432e115a95: passed change classification, fast validation, proof-pool contracts, Tray/setup/integration tests, UI/functional/accessibility tests, and CI Gate. Core/CLI and the three WSL E2E jobs were classification-skipped, not executed.Real Behavior Proof
69a1f27b0f8452c3416c99e0026bc2432e115a95; matching uncommitted source was used for the tests and live app before commit.openclaw://settingsandopenclaw://hubseparately to the fixture app's current-user named pipe; observed the app via computer-use and its redacted log.app-failedbecause the task-owned app process was deliberately stopped for cleanup.Yes/No/N/A): N/A; native UI tree and local logs were observed, not a screenshot.Security Impact
Yes, explain the risk and mitigation:Compatibility and Migration
Review Conversations