Repository navigation
Fix onboarding wizard Back desynchronization - #1205
Conversation
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 5:22 AM ET / 09:22 UTC. ClawSweeper reviewWhat this changesThe PR removes the setup wizard’s client-only Back control and cached-step replay, retains restart and exit recovery under More options, and prevents stale startup continuations from publishing a gateway client. Merge readinessKeep open. Current main still contains the client-local Back replay, while this active collaborator-authored PR is the concrete candidate fix for #1172; a maintainer should confirm the intentional removal of Back as the protocol-safe UX. Priority: P2 Review scores
Verification
How this fits togetherThe Windows setup wizard renders steps owned by a Gateway onboarding session and sends selected answers back through wizard RPCs. Its controls must reflect the Gateway’s current session so a local screen cannot submit an answer for an obsolete step. flowchart LR
A[User starts onboarding] --> B[Windows setup wizard]
B --> C[Gateway-owned wizard session]
C --> D[Current step payload]
D --> B
B --> E[Continue or recovery action]
E --> C
Decision needed
Why: The patch correctly removes a client-only state rewind, but accepting the resulting loss of backward navigation is a user-experience and protocol-contract choice that source review cannot make. Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep local navigation authoritative-only: retain restart and exit recovery now, and add Back only with a documented Gateway-side rewind operation plus end-to-end session-state proof. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main pushes Gateway payloads into local history and Back re-renders one without sending a Gateway operation. This review did not execute a live Gateway-session reproduction. Is this the best way to solve the issue? Yes, conditionally: removing a client-only rewind is the narrowest safe repair under the documented protocol, provided maintainers accept restart and exit as the interim recovery UX. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 309299b8f17b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Exact-head validation for Validation
Real behavior proofThe exact-head Debug/Dev executable was launched through the repository-supported, Gateway-free
The capture-time UIA record binds the source head/base and executable SHA-256 and passes all four assertions. The screenshot contains repository-supplied synthetic preview data only and was cropped to the app window. The screenshot is hosted from immutable evidence commit Artifact hashes:
Cleanup was exact-PID and verified; no Gateway/WSL distro, production Companion, settings, credentials, or pairings were used or changed. Proof boundary: @clawsweeper re-review |
|
@clawsweeper re-review |
|
@karkarl The exact-head build, full test, UI Automation, and sanitized visual proof are published above and address both remaining validation items. This account has READ permission only, so ClawSweeper cannot accept our re-review command. Could you please post |
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Adversarial release reviewA dual-model Opus + Codex review examined the current onboarding Back-navigation fix. Reviewed SHA: Verdict: READY TO MERGE with 96% merge confidence. No critical or high-severity findings, release blockers, or regressions were found. The change removes the unsafe client-only cached-payload rewind while preserving restart, skip, error, and finalization recovery. GitHub reports the PR clean, and all reported checks are green or intentionally skipped, including tests, setup and recovery E2E shards, x64 and ARM64 builds, repo hygiene, and CodeQL. Two non-blocking observations remain:
Neither observation is introduced as a release-blocking regression by this PR. |
Co-authored-by: Copilot App <[email protected]>
|
@karkarl Karen, I added two corrections on top of your focused Back-removal fix at First, the protocol wording now distinguishes the missing dedicated Second, removing local Back made More options the only in-page recovery path, so it now remains available while the initial Gateway connection and The new tests pin both the protocol boundary and the startup generation/disposal ordering. Current-head UI proof shows no Back control and an expandable More options menu containing Restart onboard and Skip & exit. Build, 3,812 Shared tests, both focused wizard tests, rubber-duck review, and Codex autoreview are clean. The remaining full Tray gate is running in GitHub CI because this host reproducibly hangs in an unchanged browser-proxy diagnostics test. |
Co-authored-by: Copilot App <[email protected]>

Summary
wizard.backRPC, while Gateway-provided__backandbackoptions are in-band answers submitted throughwizard.nextand intentionally filtered by CompanionFixes #1172
Validation
Current head:
12addd59ec70c2b307d7adc7f59dc22c63958a76./build.ps1- passed; documentation validation and Shared, Cli, WinNodeCli, SetupEngine, and WinUI builds succeededdotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore- passed: 3,812 passed, 32 skipped, 0 failedpython .agents/skills/autoreview/scripts/autoreview --mode local- clean: no accepted or actionable findingsgit diff --check- passed before commitThe full local Tray suite is blocked by a reproducible pre-existing host-specific hang in unchanged code:
BrowserProxyEndpointScopingTests.Diagnostics_NoOverride_TunnelWithoutBrowserProxyForward_DoesNotProbeTunnelLocalPlusTwo. A focused run of that unchanged test also hangs until the per-test blame timeout, while both changed wizard tests finish in under one second. Crabbox remote validation was unavailable because the Crabbox CLI is not installed on this controller.GitHub CI ran the full Tray suite twice. Both runs passed 2,750 tests and failed only the unchanged flaky
OpenClawChatDataProviderTests.AttachmentMetadata_ConcurrentSavesPreserveEveryCompletedSendtest, once missingfile-6.pngand once missingfile-5.png. The focused failing test passes locally, and its code path is outside this PR diff. The requiredtestcheck remains red on that unrelated flake, so the PR is not currently merge-ready.Real behavior proof
The current-head Debug/Dev executable was launched through the repository-supported Gateway-free preview path with isolated app data:
$env:OPENCLAW_SETUP_PREVIEW_PAGE='wizard'; ./run-app-local.ps1 -NoBuild -Isolated -AllowNonMainComputer-use UI Automation and an independent WinUI Live Visual Tree capture confirmed:
The proof run used repository-supplied synthetic preview data only. Neither recovery action was invoked. The exact process was stopped by PID and its isolated data directory was removed. This proves current-head layout and recovery-menu availability, not a live Gateway wizard session.