Repository navigation
Fix Start menu activation for running tray app - #1262
Conversation
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 4:49 AM ET / 08:49 UTC. ClawSweeper reviewWhat this changesThe PR sends a no-argument secondary launch through the existing current-user activation pipe as the Hub route, with bounded retries for primary-process startup. Merge readinessKeep this collaborator PR open for normal landing review. The introduced change fixes the source-proven no-argument forwarding gap while preserving the existing activation owner and security checks. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherThe WinUI tray app uses a mutex to prevent duplicate processes and a current-user named pipe to deliver second-launch activations to the running app. The activation router converts the received deep link into a route that restores the Hub window. flowchart LR
A[Start menu launch] --> B[Single-instance mutex]
B -->|Running instance| C[Activation router]
C --> D[Current-user IPC pipe]
D --> E[Running tray app]
E --> F[Hub restore and foreground]
B -->|No running instance| G[Normal startup]
Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused router-owned forwarding fix once normal CI and maintainer review complete, preserving the single current-user IPC route for all second-launch activation. Do we have a high-confidence way to reproduce the issue? Yes. The base activation path forwarded only explicit launch candidates, so a Start-menu launch with no arguments exited after seeing the mutex; the PR adds the missing default-Hub candidate and supplies a native-Windows after-fix run. Is this the best way to solve the issue? Yes. It extends the existing ActivationRouter and current-user IPC path rather than introducing another instance coordinator or window owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4c078f9ee5f9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
ActivationRouterpipe as the default Hub route.WindowManager.ShowHubas the authoritative restore and foreground path.Fixes #1218
Validation
./build.ps1: passed, including documentation validation and all product builds.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: passed, 3819 passed, 32 skipped, 0 failed.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter FullyQualifiedName~ActivationRouterTests: passed, 36 passed, 0 failed.dotnet test ./tests/OpenClaw.SetupEngine.Tests/OpenClaw.SetupEngine.Tests.csproj --no-restore: passed, 1010 passed, 0 failed.python .agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output: clean, no accepted or actionable findings.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restorewas attempted twice but did not complete after more than 10 minutes. The stale testhost was stopped. This is the known unrelated native host hang inIPGlobalProperties-backed BrowserProxy coverage; focused activation tests are green.Real behavior proof
Current-head commit
473e7645was built and launched with./run-app-local.ps1 -NoBuild -Isolated -AllowNonMainon native Windows.33272stayed alive.OpenClaw Companionwindow with HWND395906114on the Connection page.MatchingCurrentHeadProcesses=1andSecondaryHelperProcesses=0, confirming the secondary process exited and no duplicate long-lived tray instance remained.Computer-use accessibility inspection confirmed the restored native window title
OpenClaw Companion, theOpenClaw Windows Companiontitle text, and the selected Connection route.