WSL setup: no window appears at all after post-setup restart (native-handoff ai-v3: path throws InvalidOperationException/Unavailable)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by tracing ActivationRouter → OpenNativeSetupCompletion → SetupNativeHandoffLauncher.OpenAsync, then inspect the WSL path through SetupGatewaySession.ConnectAsync and its provenance check. Reproduce on a WSL-capable Windows machine using the onboarding steps in the issue, and capture the InvalidOperationException details. Done means the post-setup restart promptly opens chat or shows a visible failure, with the root cause covered by a reproducible check.
Written by the indexing model from the issue text.
Description
Summary
After WSL gateway setup completes any AI-connect step (confirmed with Local AI; AI-connect is mandatory for WSL in the current wizard, so every WSL setup run hits this) and the tray app does its post-setup restart, no chat window, hub window, or any other window appears at all for several minutes (observed ~93s+ and counting in both reproductions below). The only window that eventually appears is Settings (Connection page), which does show the backend as healthy.
Found via two independent, fresh-pull reproductions (b65006a6 and c25f7ba0), both clean builds on a fresh isolated profile.
Current behavior
- Fresh clean build, fresh isolated profile, fresh WSL distro.
- Walk onboarding: Install a local Gateway (WSL) -> Balanced capabilities -> Install (succeeds) -> Connect your AI (mandatory, no skip reachable in a normal run) -> Local AI on this PC -> install completes, model verified, gateway reconfigured and running.
- Click "Talk to my agent" on the finish page.
- The tray app restarts. The restarted process is launched with
--post-setup-launch ai-v3:<hash>(a native dashboard-handoff token), not the plain"chat"route string. openclaw-tray.logshows[WARN] Native setup destination failed (InvalidOperationException); phase: none; result: Unavailable.at roughly the same point in both reproductions.- No window (chat, hub, or even an error dialog) appears.
EnumWindowsagainst the restarted process shows nothing for 2+ minutes. - Eventually, a Settings window (Connection page) appears on its own and correctly shows Connected/healthy operator and node state — but chat is never reached.
Expected behavior
The post-restart window (chat, or at minimum a visible error/retry dialog) should appear promptly, or the failure should be surfaced to the user instead of leaving no window at all.
Investigation notes (not fully confirmed, worth a maintainer's look)
- The restart routes through
ActivationRouter->OpenNativeSetupCompletion->SetupNativeHandoffLauncher.OpenAsyncfor thisai-v3:token, which is architecturally separate from the plainShowHub/ShowWorkspacerestart path. Logger.Warnfor this failure only logs the exception type, not its message, so the exactInvalidOperationExceptiontext wasn't recoverable from the log alone.- Best-evidence hypothesis from reading the code (not confirmed with a debugger/instrumentation):
SetupGatewaySession.ConnectAsynchas a provenance/device-token check (needsProvenancetrue for a WSL-managed loopback gateway) that callsprovenanceService.InspectAsyncand can throwInvalidOperationExceptionif the result doesn't matchExpectedManagedGateway. This check does not exist in the native-package gateway branch ofSetupNativeCompletionVerifier.VerifyAsync, which would explain why a plain native-gateway setup doesn't hit this. - Separately, whatever the actual failure is,
ShowNativeSetupFailureAsync(or the broaderSetupNativeHandoffLauncher.OpenAsyncfailure path) should produce a visible window/error dialog instead of leaving the user with nothing on screen — that's a bug independent of the root cause above.
Reproduction
Deterministic across two separate fresh-pull attempts on main (b65006a6, c25f7ba0). Needs a WSL-capable Windows test machine; AI-connect is unavoidable in the current wizard flow for WSL.
Related
This was originally mistaken for #1780 ("chat window stuck on Loading messages"), which was closed as not reproducing on current main after this different, no-window symptom kept reproducing instead in its place.
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 315
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 169
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openclaw/openclaw-windows-node
-
clawsweeper:needs-product-decision clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openclaw/openclaw-windows-node#1763 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/openclaw-windows-node#1762 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:source-repro impact:ux-release-blocker issue-rating: 🦞 diamond lobster P0
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openclaw/openclaw-windows-node#1723 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-info clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:ux-friction issue-rating: 🦐 gold shrimp P1 stale
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openclaw/openclaw-windows-node#1145 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:crash-loop impact:message-loss impact:ux-release-blocker issue-rating: 🦪 silver shellfish P0
Difficulty 4/5 3-5 days Newbie friendliness 44/100
openclaw/openclaw-windows-node#1779 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
All issues in openclaw/openclaw-windows-node
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
KnifeLemon/Filee#363 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
area-Native untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
dotnet/machinelearning#7837 ·
Maintainers usually reply within 2 days
-
[CI] .trgen-ignore required for several grammars.Possibly taken @kaby76 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
antlr/grammars-v4#5073 ·
Maintainers usually reply within 1 day
-
[Enhancement]: Add a search box to the Time Zone dropdownPossibly taken @idumlupinar claimed this today. OpenStatus: New
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
dnnsoftware/Dnn.Platform#7579 ·
Maintainers usually reply within 2 days