Skip to content

Start-menu launch does not restore window when app is already running in the system tray #1218

Closed

Description

@joelagnel

Summary

When the OpenClaw Windows Node window is closed, the application correctly remains running in the system tray. However, selecting OpenClaw from the Windows Start menu while that tray process is still running produces no visible result.

The Start-menu launch appears to detect the existing single-instance process and exit, but it does not ask the running instance to show or foreground its window. To the user, the Start menu simply had no effect.

Steps to reproduce

  1. Launch the OpenClaw Windows Node app.
  2. Close its main window, leaving the app running in the system tray.
  3. Open the Windows Start menu and select OpenClaw again.
  4. Observe that the existing window is not shown and no feedback is displayed.

Actual behavior

Nothing visible happens. The application remains hidden in the system tray, leaving the user wondering whether Start-menu activation failed or the application is broken.

Expected behavior

Starting OpenClaw from the Start menu while an instance is already running should activate that existing instance and restore/show its main window in the foreground. It should not launch a duplicate background process.

UX impact

This violates the normal Windows expectation that selecting an application from Start opens its window. The silent no-op is confusing and encourages repeated launch attempts or unnecessary troubleshooting.

Acceptance criteria

  • Start-menu activation is forwarded to the existing tray instance.
  • The main window is restored, shown, and brought to the foreground.
  • No duplicate long-running application instance is created.
  • The behavior works when the existing window was closed to the tray or minimized/hidden.

Activity

  1. added
    clawsweeper:bulk-filed
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:ux-friction
    issue-rating: 🦞 diamond lobster
    P2
    on Aug 25, 2026
  2. clawsweeper commented on Aug 25, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 28, 2026, 2:28 AM ET / 06:28 UTC.

    Summary
    Current main still exits a normal second Start-menu launch without notifying the tray instance, while valid deep links alone are forwarded. The source-proven tray bug remains necessary work, and its active-landing status indicates it is already under maintainer ownership.

    Reproducibility: yes. from source. A normal no-argument secondary launch resolves no candidate, skips pipe forwarding, and exits while the original tray process remains hidden.

    Next step
    The issue is source-proven but marked active landing and no-new-fix-pr, so it should remain with the current maintainer-owned implementation path rather than receive automated repair dispatch.

    Review details

    Best possible solution:

    Add a narrow normal-secondary-launch activation in ActivationRouter that routes to the existing OpenHub behavior, then cover it with activation tests and an isolated Windows tray proof.

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

    Yes, from source. A normal no-argument secondary launch resolves no candidate, skips pipe forwarding, and exits while the original tray process remains hidden.

    Is this the best way to solve the issue?

    Yes. Reusing the existing ActivationRouter and WindowManager owners is narrower and safer than adding a parallel single-instance or window-management path.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The repair must preserve current-user IPC and deep-link validation while adding a separate trusted no-argument activation path.
    • A Windows desktop proof should confirm restore and foreground behavior without creating a second long-running tray process.

    Codex review notes: model internal, reasoning high; reviewed against 1955282412bd.

    Label changes

    Label justifications:

    • P2: The normal desktop launch flow is confusing and broken, but the report does not establish an unavailable core runtime or data loss.
    • impact:ux-friction: Users receive no visible response from a normal Start-menu action while the app remains recoverable through its tray surface.
    Evidence reviewed

    What I checked:

    • Current secondary-launch behavior: When the mutex belongs to an existing instance, startup resolves a launch candidate and forwards only a non-null deep link; it otherwise exits. A normal Start-menu launch supplies no recognized deep-link candidate. (src/OpenClaw.Tray.WinUI/App.xaml.cs:571, 1955282412bd)
    • No-argument activation is intentionally ignored: The router recognizes only a protocol URI, a deep-link command-line argument, or the post-setup chat argument. Its current test asserts that an input with no candidate produces Ignore. (src/OpenClaw.Tray.WinUI/Services/ActivationRouter.cs:48, 1955282412bd)
    • Existing foreground path: The existing WindowManager ShowHub path restores a minimized Hub window and activates it after content readiness, so the repair can reuse the established surface rather than create another window owner. (src/OpenClaw.Tray.WinUI/Services/WindowManager.cs:241, 1955282412bd)
    • Architecture ownership: The architecture ledger assigns forwarded activation normalization and current-user IPC to ActivationRouter, and window creation, reuse, focus, and lifetime to WindowManager. (docs/ARCHITECTURE.md:77, 1955282412bd)
    • History and release context: Current main is newer than the stable v2026.7.1 release and still contains the defect. The available history identifies the tray ownership refactor as relevant routing context, not as causal attribution. (src/OpenClaw.Tray.WinUI/App.xaml.cs:571, 17a8b0363a82)
    • Maturity label unavailable: The required maturity shortlist could not run because this checkout has no qa/maturity-scores.yaml, so no stable-maturity label is proposed.

    Likely related people:

    • Barbara Kudiess: Authored the recent refactor that separated tray App orchestration into focused activation and window owners. (role: tray architecture contributor; confidence: high; commits: 17a8b0363a82, 3a097bc85f7b; files: src/OpenClaw.Tray.WinUI/Services/ActivationRouter.cs, src/OpenClaw.Tray.WinUI/Services/WindowManager.cs)
    • shanselman: Applied the active-landing status and authored a recent tray reliability fix. (role: active issue owner and recent tray contributor; confidence: medium; commits: 12b84457a464; files: src/OpenClaw.Tray.WinUI/App.xaml.cs)
    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.
    • 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.
  3. added
    status: 🚢 actively landing
    on Aug 28, 2026
  4. removed
    status: 🚢 actively landing
    on Aug 28, 2026
  5. locked as resolved and limited conversation to collaborators on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:bulk-filedclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions