Skip to content

Fix setup triage quick wins - #879

Merged
shanselman merged 1 commit into
mainfrom
setup-triage-clear-prs
Jun 30, 2026
Merged

shanselman merged 1 commit into
mainfrom
setup-triage-clear-prs

Conversation

@shanselman

@shanselman shanselman commented Jun 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Validation

  • .\build.ps1
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore — 2629 passed, 31 skipped
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore — 1433 passed
  • dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore — 361 passed
  • Fresh-worktree note: the first --no-restore test command hit the expected missing project.assets.json restore condition; tests were restored once, then the required build and --no-restore validation commands above passed.
  • Focused setup UI contract: dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter FullyQualifiedName~SetupWelcomePage_RunsExistingConfigDetectionOffUiThread
  • Focused preflight-wsl UTF-16 parsing bug still present in v0.6.0 (re: #660 closed prematurely) #661 parser proof before issue closure: dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --filter "FullyQualifiedName~WslInstallSupport_TryParseWslVersion" — 33 passed
  • PR CI: CodeQL, repo hygiene, unit tests, setup E2E slices, and x64/arm64 builds passed on Fix setup triage quick wins #879.

Real behavior proof

  • Automated proof: setup detection now crosses an await Task.Run(() => ExistingConfigDetector.Detect(...)) boundary before dialog/navigation, and the contract test pins the disabled/busy button state, async detection boundary, null/closed window guard, XamlRoot guard, and safe navigation path.
  • Adversarial review proof: Codex (gpt-5.3-codex) and Opus (claude-opus-4.6) both flagged the same setup-window close race; fixed by capturing the setup window once, treating null/closed as unsafe to continue, guarding XamlRoot, and only restoring the button while the captured window remains open.
  • Final structured review: python .\.agents\skills\autoreview\scripts\autoreview --mode local --prompt "Scope baseline: review the current local changes for issues #847, #867, #868 and the review-triggered WelcomePage window lifecycle fix..." reported no accepted/actionable findings.
  • Partial visible UI proof: on current PR head bf69a8b6, the setup UI stayed responsive after clicking the setup path and reached a terminal Setup failed state rather than becoming Not Responding. The observed failure was unrelated to the UI-thread fix: Step 'preflight-port' failed: Port 18789 is already in use for loopback bind (AddressAlreadyInUse).
  • Not verified / blocked: the full confirmation-dialog/navigation proof was blocked because port 18789 was already occupied by existing ssh.exe loopback listeners on both 127.0.0.1:18789 and [::1]:18789. Those tunnels were intentionally left running, so the setup flow could not proceed past preflight in this proof pass.

Address clear automated issue candidates from setup triage: improve architecture-aware WSL virtualization guidance, move existing setup detection off the setup UI thread with lifecycle guards, and add wizard default answer matrix coverage.

Co-authored-by: Copilot <[email protected]>
@clawsweeper

clawsweeper Bot commented Jun 27, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 12:31 PM ET / 16:31 UTC.

Summary
This PR moves WelcomePage existing-config detection to a background task with busy/lifecycle guards, makes unsupported WSL machine-configuration guidance architecture-aware, and adds setup wizard answer-matrix tests.

Reproducibility: yes. for source-level reproduction: current main calls ExistingConfigDetector.Detect synchronously from the install button path before the dialog, and that detector blocks on wsl.exe output. No live Windows WinUI/WSL reproduction was run in this read-only review.

Review metrics: 3 noteworthy metrics.

  • Changed surface: 5 files changed, +220/-20. The diff is bounded to setup UI, setup diagnostics, and focused setup/tray tests.
  • Issue coverage: 2 closing issues, 1 partial overlap. The PR closes the setup hang and virtualization wording issues but only adds representative coverage toward the broader provider/channel matrix.
  • Linked UI proof artifacts: 0 linked artifacts. The PR changes visible setup UI behavior, and current proof is textual/partial rather than a verifiable screenshot, recording, or attached log.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add redacted current-head screenshot, recording, copied UI diagnostics, or logs showing the install click path displays Checking existing setup, stays responsive, and reaches the confirmation/navigation path or a clear environment blocker.
  • Keep Automation validation for wizard combinations #847 open unless maintainers explicitly decide this representative no-auth coverage closes the matrix requirement.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR body now includes a partial current-head run and port-conflict blocker, but it still does not provide verifiable UI media or logs showing the checking state and confirmation/navigation path; add redacted proof and update the PR body for re-review.

Mantis proof suggestion
A short visual setup proof would directly verify the WinUI busy state and responsive confirmation/navigation behavior that tests cannot show. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis visual task: verify clicking Install new WSL Gateway shows Checking existing setup..., keeps the setup window responsive, and reaches the confirmation dialog on current PR head.

Risk before merge

  • [P1] Current-head UI proof is still incomplete: the PR body reports a partial run ending in a port-conflict setup failure, but no screenshot, recording, log artifact, or copied diagnostics directly shows the Checking existing setup state plus confirmation/navigation path.
  • [P1] The provider/channel matrix work remains partial; merging this PR should not close Automation validation for wizard combinations #847 unless maintainers explicitly accept representative no-auth unit coverage as sufficient.

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow setup UI and diagnostic fixes after redacted current-head UI proof demonstrates the click path, while leaving the broader provider/channel matrix tracked separately.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] Human follow-up should resolve the contributor-supplied real UI proof gate and decide whether the partial provider/channel coverage is only supporting evidence for the broader issue.

Security
Cleared: No concrete security or supply-chain concern found; the diff changes setup UI control flow, setup diagnostic text, and tests only.

Review details

Best possible solution:

Land the narrow setup UI and diagnostic fixes after redacted current-head UI proof demonstrates the click path, while leaving the broader provider/channel matrix tracked separately.

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

Yes for source-level reproduction: current main calls ExistingConfigDetector.Detect synchronously from the install button path before the dialog, and that detector blocks on wsl.exe output. No live Windows WinUI/WSL reproduction was run in this read-only review.

Is this the best way to solve the issue?

Yes directionally: moving the pre-dialog setup probe off the UI thread while preserving replacement semantics is the narrow fix, and the ARM64 wording change is focused. The remaining blocker is proof completeness, not a definite code defect found in this pass.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 84fcf8ae626f.

Label changes

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P1: The PR targets a first-run WSL gateway setup hang in a core onboarding path, with related setup diagnostic and provider/channel validation coverage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body now includes a partial current-head run and port-conflict blocker, but it still does not provide verifiable UI media or logs showing the checking state and confirmation/navigation path; add redacted proof and update the PR body for re-review.
Evidence reviewed

What I checked:

  • Repository policy applied: AGENTS.md was read fully; its setup/UI proof guidance applies because this PR changes onboarding setup UI behavior and asks for visible current-head proof of the active changed state. (AGENTS.md:52, 84fcf8ae626f)
  • No matching maintainer notes: No files were present under .agents/maintainer-notes, so no internal maintainer note changed the review direction.
  • Current-main freeze path: Current main still calls ExistingConfigDetector.Detect synchronously from StartButtonClickAsync before the confirmation dialog, matching the source-level setup freeze addressed by this PR. (src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs:72, 84fcf8ae626f)
  • Current-main blocking detector: ExistingConfigDetector reads wsl.exe stdout synchronously before WaitForExit, so running it on the UI event path can block the setup window. (src/OpenClaw.SetupEngine/ExistingConfigDetector.cs:45, 84fcf8ae626f)
  • PR UI fix shape: On the PR head, the install button is disabled, the button text changes to Checking existing setup..., detection runs via Task.Run, and the captured SetupWindow/XamlRoot are checked before showing the dialog. (src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs:76, bf69a8b63331)
  • PR ARM64 wording fix: On the PR head, unsupported-machine-configuration guidance keeps Windows Virtual Machine Platform remediation and avoids BIOS/VT-x/AMD-V wording for ARM64 devices. (src/OpenClaw.SetupEngine/SetupSteps.cs:145, bf69a8b63331)

Likely related people:

  • ranjeshj: GitHub commit history ties this account to the out-of-process SetupEngine redesign that introduced WelcomePage, ProgressPage, and ExistingConfigDetector. (role: feature introducer; confidence: high; commits: cefce3952ab1, afa6218338d6; files: src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs, src/OpenClaw.SetupEngine/ExistingConfigDetector.cs, tests/OpenClaw.E2ETests/Setup/E2ESetupFixture.cs)
  • shanselman: GitHub history shows prior current-main setup UI packaging/hardening commits by this account, so the routing signal is not based only on authorship of this PR. (role: recent setup UI contributor; confidence: medium; commits: aaf50b758504, 0d4fcbd50ad5, d23f8ca50013; files: src/OpenClaw.SetupEngine.UI/Pages/WelcomePage.xaml.cs, src/OpenClaw.SetupEngine/SetupSteps.cs, tests/OpenClaw.E2ETests/Setup/E2ESetupFixture.cs)
  • RBrid: GitHub history ties this account to the merged ARM64-aware WSL virtualization wording change in the same SetupSteps helper and tests. (role: recent setup diagnostic contributor; confidence: high; commits: 4be005707f44, 5505a85da7df; files: src/OpenClaw.SetupEngine/SetupSteps.cs, tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs)
  • bkudiess: GitHub history ties this account to recent setup wizard protocol and visible wizard rendering work adjacent to the provider/channel coverage added here. (role: adjacent setup wizard contributor; confidence: medium; commits: 8f134b354df0; files: src/OpenClaw.SetupEngine/SetupWizardRunner.cs, src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs, docs/ONBOARDING_WIZARD.md)
  • TheAngryPit: GitHub history ties this account to recent setup-connect E2E and CI timeout work on the validation surface that would host broader setup matrix proof. (role: adjacent E2E validation contributor; confidence: medium; commits: e70868d82bf0; files: .github/workflows/ci.yml, tests/OpenClaw.E2ETests/Setup/E2ESetupFixture.cs)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

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.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 Urgent regression or broken agent/channel workflow affecting real users now. labels Jun 27, 2026
@shanselman

Copy link
Copy Markdown
Collaborator Author

@openclaw-mantis visual task: verify clicking Install new WSL Gateway shows Checking existing setup..., keeps the setup window responsive, and reaches the confirmation dialog on current PR head.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jun 30, 2026
@shanselman
shanselman merged commit ad943b9 into main Jun 30, 2026
19 checks passed
@shanselman
shanselman deleted the setup-triage-clear-prs branch June 30, 2026 16:44
@clawsweeper clawsweeper Bot mentioned this pull request Jul 1, 2026
13 of 17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 Urgent regression or broken agent/channel workflow affecting real users now. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Virtualization text in setup may be misleading Setup UI becomes unresponsive while installing WSL gateway

1 participant