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
Setup UI becomes unresponsive while installing WSL gateway #867
P1Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.
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.
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:
Issue screenshot: The attached reporter image shows the Windows title bar text 'OpenClaw Setup (Not Responding)' while the welcome screen and Install new WSL Gateway button remain visible.
Install click path: The welcome button handler calls ExistingConfigDetector.Detect before showing the confirmation dialog or moving to the progress page, so this work runs in the UI event path on current main. (src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs:72, 37bdd3837709)
Blocking WSL probe: ExistingConfigDetector starts wsl.exe --list --quiet, then calls StandardOutput.ReadToEnd before WaitForExit(5000); if wsl.exe stalls before closing stdout, the timeout does not protect the UI thread. (src/OpenClaw.SetupEngine/ExistingConfigDetector.cs:45, 37bdd3837709)
Pipeline threading boundary: The main setup pipeline is awaited through Task.Run and reports progress through DispatcherQueue, which points away from the long install pipeline as the primary UI-thread freeze source. (src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs:101, 37bdd3837709)
Expected setup progress UX: The onboarding documentation defines a Local setup progress step for fresh OpenClawGateway WSL installation, supporting the expectation that users see progress rather than a frozen welcome window. (docs/ONBOARDING_WIZARD.md:24, 37bdd3837709)
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.
P1Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.
Activity
clawsweeper commentedon Jun 26, 2026
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:
Codex review notes: model internal, reasoning high; reviewed against 37bdd3837709.
Label changes
Label changes:
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.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.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:
What I checked:
src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs:72, 37bdd3837709)src/OpenClaw.SetupEngine/ExistingConfigDetector.cs:45, 37bdd3837709)src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs:101, 37bdd3837709)docs/ONBOARDING_WIZARD.md:24, 37bdd3837709)src/OpenClaw.SetupEngine/ExistingConfigDetector.cs:23, cefce3952ab1)Likely related people:
src/OpenClaw.SetupEngine/ExistingConfigDetector.cs,src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs,src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs)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 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 autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.