Repository navigation
fix(setup): complete npm latest Gateway landing - #1381
Conversation
Keep bootstrap setup scopes compatible with limited profiles and let wizard-only setup adopt the authenticated protocol-v4 Gateway version without weakening normal install-time version checks. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Do not synthesize legacy official release selections for custom installer URLs, and document the PR-title reference convention for future agent plans. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Keep typed compatibility failures actionable in the setup UI and headless output, preserve full CI coverage for the renamed install policy, and align bootstrap-scope documentation with the bounded client request. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Keep configured product fallbacks from replacing versions supplied by custom Gateway installers. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 9, 2026, 5:33 PM ET / 21:33 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR restores setup fallback recovery, supports authenticated version discovery for wizard-only runs, adds a bounded bootstrap retry, requires explicit custom-installer versions, and updates CI routing and regression tests. Merge readiness⛔ Blocked before merge - 3 items remain This remains a useful follow-up to the merged setup change. No definite introduced correctness defect was found, but repository-required runtime validation and upgrade evidence remain incomplete. Priority: P1 Review scores
Verification
How this fits togetherWindows setup installs and pairs an OpenClaw Gateway, then runs its onboarding wizard. Installation settings and authenticated Gateway responses determine whether setup completes or offers recovery. flowchart TD
A[Installation settings] --> B[Gateway install policy]
B --> C[Install Gateway]
C --> D[Authenticated connection]
E[Existing Gateway] --> D
D --> F{Version and protocol compatible}
F -->|Yes| G[Onboarding wizard]
F -->|No| H[Configured fallback recovery]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the explicit custom-installer contract with actionable migration guidance and demonstrated fresh-install, legacy-config recovery, and fallback behavior. Do we have a high-confidence way to reproduce the issue? Yes, source inspection shows that main's wizard-only connection fails compatibility validation when no installation step has populated InstalledVersion. This read-only review did not execute that path. Is this the best way to solve the issue? The repairs follow existing owners and preserve strict installation-time checks. Merge readiness remains unclear until the intentional custom-installer upgrade boundary and restored recovery flow are validated. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 912a1050515d. LabelsLabel 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
History |
Request the full server-defined bootstrap profile so normal setup retains operator admin authority while limited setup tokens continue to strip admin at the gateway boundary. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Request the full bootstrap profile for normal setup, then retry once with bounded scopes only when the gateway explicitly rejects the token profile. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Summary
Follow up immediately on #1312 (improve(setup): install latest stable Gateway from npm), which merged the original remote contributor head after workflow-scope restrictions prevented the reviewed maintainer repairs from being pushed.
This PR applies the reviewed repair stack directly to the new
main:GatewayReleasePolicy.cstoGatewayInstallPolicy.cs;Required proof pools
windows-wsl-gateway-e2e: current-head setup, bootstrap, pairing, recovery, and Gateway behavior.windows-wsl-mxc: current-head Gateway to Windows node containment proof where MXC cannot skip.Validation
.\build.ps1: passed on the preceding full-profile correction.\scripts\test-ci-change-classifier.ps1: passedA fresh full required local rerun, structured review of the adaptive change, and hosted CI are in progress on the current head.
Real behavior proof
operator.admin.AUTH_BOOTSTRAP_TOKEN_INVALIDfor a limited profile, Windows reconnects once with the bounded scopes shared by both profiles. A second rejection remains a terminal authentication failure.validate-mxc-e2e.ps1reaches the real setup harness but is blocked before the changed code runs because this host'swsl --installcannot attach%LOCALAPPDATA%\Temp\swap.vhdx(Access is denied).Compatibility and security
Fixes the post-merge regressions from #1312 (improve(setup): install latest stable Gateway from npm).