Repository navigation
Description
Bug
Setup navigation around the Gateway installed handoff is asymmetric and can leave Gateway wizard state active after the user backs out.
On current main:
- Gateway installed (Step 4 of 6) offers Start OpenClaw onboard, but no Back action.
- Pressing Back on the first server-defined OpenClaw onboard question returns to Set up OpenClaw (Step 2 of 6), skipping the installed-gateway handoff and Capabilities page.
- That route does not cancel the active Gateway wizard session before leaving.
- A connection completing after navigation can still become the active client, and step history is not cleared on every fresh wizard start.
This affects both initial local WSL setup and the direct Settings > OpenClaw Onboard > Open onboarding entry point.
@jacobtomlinson, tagging you for setup and Local AI UX context.
Reproduction
- Use an app-managed local WSL gateway.
- Complete local setup, or open Settings > OpenClaw Onboard > Open onboarding.
- Reach the Gateway installed screen.
- Observe that the screen has Start OpenClaw onboard, but no Back button.
- Start OpenClaw onboard and wait for its first question.
- Press Back.
- Observe that setup returns to Set up OpenClaw rather than Gateway installed, without first cancelling the active Gateway wizard session.
Expected behavior
- Gateway installed > Back should return to the Capabilities flow with the current setup configuration retained.
- Back on the first OpenClaw onboard question should invalidate pending client work, cancel the active Gateway wizard session, and return to Gateway installed.
- A client connection that completes after navigation should be disconnected instead of becoming active.
- Starting a fresh wizard should clear local step history.
This boundary behavior does not imply support for rewinding later Gateway-owned wizard questions.
Actual behavior
- The Gateway installed handoff is forward-only.
- Back on the first onboarding question navigates directly to Welcome.
- The active wizard session is not cancelled on that route.
- Pending connection and stale-history state can survive navigation.
Environment
- Version or commit: current main at
911f36860b2d - OS or platform: Windows setup UI with an app-managed local WSL gateway
- Relevant configuration: first-run local setup or direct installed-gateway onboarding from Settings
Evidence
Current main renders only the onboarding button on the Gateway installed milestone:
openclaw-windows-node/src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml
Lines 114 to 128 in 911f368
| <Grid Grid.Row="2" ColumnDefinitions="*,Auto" Margin="0,12,0,16"> | |
| <StackPanel x:Name="DotsPanel" Grid.ColumnSpan="2" Orientation="Horizontal" Spacing="8" | |
| HorizontalAlignment="Center" VerticalAlignment="Center" | |
| IsTabStop="False" AutomationProperties.Name="Step 4 of 6"> | |
| <Border Width="8" Height="8" CornerRadius="4" VerticalAlignment="Center" Background="{ThemeResource SetupInactiveDotBrush}" /> | |
| <Border Width="8" Height="8" CornerRadius="4" VerticalAlignment="Center" Background="{ThemeResource SetupInactiveDotBrush}" /> | |
| <Border Width="8" Height="8" CornerRadius="4" VerticalAlignment="Center" Background="{ThemeResource SetupInactiveDotBrush}" /> | |
| <Border Width="20" Height="8" CornerRadius="4" VerticalAlignment="Center" Background="{ThemeResource SetupIndicatorAccentBrush}" /> | |
| <Border Width="8" Height="8" CornerRadius="4" VerticalAlignment="Center" Background="{ThemeResource SetupInactiveDotBrush}" /> | |
| <Border Width="8" Height="8" CornerRadius="4" VerticalAlignment="Center" Background="{ThemeResource SetupInactiveDotBrush}" /> | |
| </StackPanel> | |
| <Button x:Name="OnboardButton" Grid.Column="1" Content="Start OpenClaw onboard" | |
| Visibility="Collapsed" MinWidth="100" HorizontalAlignment="Right" | |
| Margin="48,0" Style="{StaticResource AccentButtonStyle}" | |
| Click="Onboard_Click" /> |
Current main assigns the connected client before checking whether navigation invalidated the operation:
openclaw-windows-node/src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs
Lines 107 to 138 in 911f368
| private async Task StartWizardAsync(bool clearTranscript = true) | |
| { | |
| var generation = AdvanceOperationGeneration(); | |
| try | |
| { | |
| _errorState = false; | |
| _finalizationErrorState = false; | |
| _expectedTerminalRestart = false; | |
| HideRecoveryActions(); | |
| // Cancel any in-progress server-side wizard session before starting a | |
| // fresh one, so the gateway doesn't reject wizard.start with "wizard | |
| // already running" when recovering from a previous error. | |
| await CancelCurrentSessionAsync(); | |
| ClearConsoleBanner(); | |
| _sessionId = ""; | |
| _wizardStepCount = 0; | |
| _progressPolls = 0; | |
| _totalProgressPolls = 0; | |
| _lastProgressStepId = ""; | |
| _stepVisits.Clear(); | |
| SetBusy("Connecting to gateway..."); | |
| _client = await ConnectClientAsync(); | |
| _client.StatusChanged += OnWizardClientStatusChanged; | |
| SetBusy("Starting wizard..."); | |
| StartConsoleTail(); | |
| var payload = await _client.SendWizardRequestAsync("wizard.start", timeoutMs: 30_000); | |
| if (generation != _operationGeneration) | |
| return; | |
| if (clearTranscript) | |
| TranscriptPanel.Children.Clear(); | |
| await ApplyPayloadAsync(payload); |
The first-question Back path navigates directly to Welcome:
openclaw-windows-node/src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs
Lines 769 to 781 in 911f368
| private void WizardBack_Click(object sender, RoutedEventArgs e) | |
| { | |
| // Pop the current step (that's showing now), then re-render the previous one | |
| if (_stepHistory.Count > 1) | |
| { | |
| _stepHistory.Pop(); // discard current | |
| var previousPayload = _stepHistory.Pop(); // will be re-pushed by ApplyPayloadAsync | |
| _ = ApplyPayloadAsync(previousPayload); | |
| } | |
| else | |
| { | |
| SetupWindow.Active?.NavigateToWelcome(back: true); | |
| } |
Candidate fix branch:
No pull request has been opened so the behavior can be tested first.
Additional context
- Bug: onboarding Back rewinds Companion UI but not Gateway wizard session #1172 covers the distinct problem of attempting to rewind after advancing within the Gateway-owned question sequence.
- # [Bug]: Installer setup wizard has no Back button #688 was the broader historical request for Back navigation throughout setup.
- Change Local AI setup after installed #1243 concerns exposing reconfiguration from the Local AI page. It can lead into this installed-gateway onboarding path but is not the same navigation defect.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Aug 27, 2026
Codex review: this still needs some work. Reviewed September 22, 2026, 6:27 PM ET / 22:27 UTC.
Summary
Keep open for the remaining navigation decision. The reported stale-client and history hazards are addressed, but returning from Gateway installed to Capabilities remains unsupported and explicitly deferred in the discussion.
Reproducibility: not applicable. to the remaining navigation feature: source confirms the missing return action. The original first-question Back reproduction no longer applies because that control and its local history were removed.
Maintainer decision needed
Why: Current docs deliberately specify forward-only onboarding, the author asked to defer this change, and subsequent priority changes do not settle its intended behavior.
Next step
Resolve the explicit navigation deferral with the setup owners; the bulk-filed signal and product choice exclude automated repair dispatch.
Review details
Best possible solution:
Preserve the existing lifecycle protections and define a configuration-preserving handoff return path separately from Gateway-question rewind.
Do we have a high-confidence way to reproduce the issue?
Not applicable to the remaining navigation feature: source confirms the missing return action. The original first-question Back reproduction no longer applies because that control and its local history were removed.
Is this the best way to solve the issue?
Unclear until the boundary navigation is approved; any implementation should preserve current cancellation safeguards and avoid restoring local replay of Gateway questions.
AGENTS.md: found and applied where relevant.
Codex review notes: model internal, reasoning medium; reviewed against c7063081a2a5.
Label changes
Label changes:
P2: The remaining request improves setup navigation; current source provides restart and skip recovery, so a blocked first-use path warranting P0 is not established.P0: Current review triage priority is P2, so this older priority label is no longer current.Label justifications:
P2: The remaining request improves setup navigation; current source provides restart and skip recovery, so a blocked first-use path warranting P0 is not established.impact:ux-friction: Users cannot directly return from the installed-gateway handoff to revise earlier capability choices.Evidence reviewed
What I checked:
src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml:125, c7063081a2a5)src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:130, c7063081a2a5)docs/ONBOARDING_WIZARD.md:55, c7063081a2a5)tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs:1558, c7063081a2a5)Likely related people:
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.fix(setup): make gateway onboarding handoff reversible
fix(setup): make gateway onboarding handoff reversible
joelagnel commentedon Sep 1, 2026
To reduce risk and only merge critical fixes, we are keeping the current forward-only flow for now. Can revisit after. Will keep this issue open though. Don't merge this yet.
14 remaining items
github-actions commentedon Oct 7, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.
github-actions commentedon Oct 15, 2026
Closing due to inactivity.
If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.