Skip to content

Setup UI becomes unresponsive while installing WSL gateway #867

Closed

Description

@calebeden

After clicking "Install new WSL Gateway", the setup window became unresponsive for several minutes. This seems to suggest that work is being done on the UI thread and blocking it from updating. I would instead expect installing the gateway to be done in a background thread, with a progress ring/bar to indicate that the application is waiting for the work to complete in order to move on.

Image

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 26, 2026, 4:03 PM ET / 20:03 UTC.

    Summary
    This should stay open: current main still has a source-level UI-thread blocking path immediately after the install button, and the reporter's screenshot matches the observable symptom. The actual setup pipeline is already dispatched off the UI thread, so the likely narrow bug is the pre-install replacement detection before the progress screen appears.

    Reproducibility: yes. for source-level reproduction: current main calls ExistingConfigDetector.Detect on the install button path, and that detector synchronously waits on wsl.exe output before progress UI is shown. I did not run a live Windows WinUI/WSL repro in this read-only environment.

    Next step
    A focused repair can address the UI-thread WSL detection path without needing a new product decision or broad setup architecture change.

    Review details

    Best possible solution:

    Make the welcome/install click path non-blocking and timeout-safe before the replacement dialog or progress transition, while preserving the existing registry and distro replacement semantics.

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

    Yes for source-level reproduction: current main calls ExistingConfigDetector.Detect on the install button path, and that detector synchronously waits on wsl.exe output before progress UI is shown. I did not run a live Windows WinUI/WSL repro in this read-only environment.

    Is this the best way to solve the issue?

    Yes: the narrow maintainable fix is to make the pre-install detection async, cancellable, and timeout-safe with a visible busy state. The setup pipeline itself already runs off the UI thread, so a broad pipeline rewrite is not indicated.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • I did not run a live Windows WinUI/WSL reproduction in this Linux read-only review environment; the finding is source-reproducible and supported by the reporter screenshot.
    • An open presentation-only onboarding redesign at Redesign WSL gateway setup and OpenClaw onboard UX #792 touches the same setup UI files and may need coordination or rebasing, but it is conflicting and does not claim to fix the install/probe threading path.
    • Any fix must preserve the existing replacement warning semantics for app-owned WSL distros, local gateway records, and identity regeneration while making the probe non-blocking.

    Codex review notes: model internal, reasoning high; reviewed against 37bdd3837709.

    Label changes

    Label changes:

    • add P1: A frozen setup window affects the first-run local WSL gateway path, which is a core onboarding workflow for real users.
    • add impact:crash-loop: The report and source inspection concern a user-visible setup hang/unresponsive window rather than only cosmetic progress text.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

    Label justifications:

    • P1: A frozen setup window affects the first-run local WSL gateway path, which is a core onboarding workflow for real users.
    • impact:crash-loop: The report and source inspection concern a user-visible setup hang/unresponsive window rather than only cosmetic progress text.
    Evidence reviewed

    Acceptance criteria:

    • ./build.ps1
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.SetupEngine.Tests/OpenClaw.SetupEngine.Tests.csproj --no-restore
    • .\scripts\validate-wsl-gateway.ps1

    What I checked:

    Likely related people:

    • ranjeshj: PR and git history tie Ranjesh to the out-of-process SetupEngine redesign that introduced the WelcomePage, ProgressPage, and ExistingConfigDetector paths involved here. (role: feature introducer; confidence: high; commits: cefce3952ab1; files: src/OpenClaw.SetupEngine/ExistingConfigDetector.cs, src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs, src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs)
    • bkudiess: Recent merged and open setup-wizard work touches the same SetupEngine UI area, including richer wizard handling and an onboarding redesign PR that modifies WelcomePage and ProgressPage. (role: recent area contributor; confidence: medium; commits: 84d2e6ab80c8, 1e6951331f1c; files: src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs, src/OpenClaw.SetupEngine/SetupWizardRunner.cs, src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.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.
  2. added
    P1
    impact:crash-loop
    no-stale
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:queueable-fix
    clawsweeper:fix-shape-clear
    on Jun 26, 2026
  3. locked as resolved and limited conversation to collaborators on Jul 3, 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

    P1clawsweeper:fix-shape-clearclawsweeper:queueable-fixclawsweeper:source-reproimpact:crash-loopissue-rating: 🦞 diamond lobsterno-stale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions