Repository navigation
fix(linux): keep first-run onboarding alive when the gateway restarts - #129502
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 25, 2026, 1:50 PM ET / 17:50 UTC. ClawSweeper reviewWhat this changesPreserves Linux first-run Model Setup and guided onboarding across Gateway reconnects while preventing ambiguous model-activation retries. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until real behavior proof is added - 3 items remain Keep this PR open. The source repair is focused and addresses the current-main failure, but final exact-head Linux after-fix evidence is still required before merge. Priority: P1 Review scores
Verification
How this fits togetherThe Linux desktop watchdog normally replaces an unreachable Gateway dashboard with a local recovery page. Model Setup detects and activates a model, verifies it, then proceeds to onboarding or chat. flowchart LR
A[Gateway connection] --> B[Linux desktop watchdog]
B --> C{First-run onboarding active?}
C -->|yes| D[Preserve live web view]
C -->|no| E[Show recovery screen]
D --> F[Model Setup owner]
F --> G[Activate and verify model]
G --> H[Guided onboarding or chat]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +31, Tests +244, Docs 0, Other +72. Total +347 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Add redacted exact-head Linux evidence showing a Gateway restart, the same first-run page remaining active, then successful verification into onboarding or chat. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main’s watchdog replaces the first-run dashboard during an outage and later reloads the normal dashboard, discarding the live setup state. Is this the best way to solve the issue? Yes. Retaining only explicitly marked first-run routes and requiring a replacement Gateway hello plus exact model verification is narrower than a generic reconnect fallback. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1d526c5c0ef6. 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
|
8add964 to
32013bf
Compare
32013bf to
8653198
Compare
|
Merged via squash.
|
…openclaw#129502) * fix(linux): preserve onboarding through gateway restarts * refactor(ui): keep model setup below file-size limit * test: isolate plugin metadata and register startup retry coverage
What Problem This Solves
Fixes an issue where Linux desktop users lost first-run AI setup or guided onboarding whenever their Gateway restarted or stayed offline for 15 seconds. The app replaced the live onboarding page with its local stopped screen and later opened ordinary chat, silently skipping model verification or the remaining onboarding steps. An interrupted model activation could also be dispatched twice, accept the wrong replacement model, or fail to retry when the user selected Check again.
Why This Change Was Made
The native Linux watchdog now preserves the actual live WebView throughout a reconnect only while Model Setup or guided onboarding owns it, leaving ordinary dashboard reconnect behavior unchanged. The shared first-run setup owner records the exact model activation before dispatch, retains that intent only across the same Gateway client and agent, verifies the exact persisted model after reconnect, fences ambiguous duplicate activation, and rearms only on an explicit user retry.
User Impact
Linux onboarding now survives Gateway restarts, continues the remaining guided setup, and reliably reaches a working AI-backed chat. Failed or ambiguous activation remains visible and actionable without changing unrelated startup, update, or credential behavior.
AI-assisted: yes.
Evidence
/settings/model-setup?firstRun=1and/custodian?onboarding=1were replaced by the stopped screen exactly 15 seconds aftersystemctl --user stop openclaw-gateway.service; restarting the Gateway incorrectly ended at/chat/main.cargo build --lockedpluscargo test --locked --all-targetspassed against the exact PR head: 121 tests passed and one intentionally ignored.LINUX_TAURI_FINAL_OK.Before: onboarding is destroyed after 15 seconds offline
After: verified AI onboarding remains alive while the Gateway reconnects