Repository navigation
fix(onboarding): keep Tauri setup recoverable and verify model results - #139140
Conversation
Keep Tauri startup errors on the initiating page, discover eligible Ollama models before catalog limits, and retain uncertain activation ownership. Align browser verification with the existing native/server budget and reject interrupted model output before publishing setup replies or commands. Guide app users directly to their agent; external channels remain optional. Verified with native Tauri startup/retry and Codex chat, live local models, HTTP discovery, browser recovery, terminal-result regressions, and type/lint gates. Closes #139086.
|
🦞👀 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. |
Use one interactive agent loop and surface its terminal error without another planner call. Preserve the separate one-shot CLI planner. Validate config proposals with the existing inference-owner guard before admission, and mirror only authoritative proposal transitions. Align recovery E2E fixtures with the real Gateway rejection metadata.
|
@clawsweeper re-review The final revision removes the second interactive inference path after a terminal failure, validates protected config proposals before admission, and aligns CLI proposal mirroring. The PR body records the reproduced failures, preserved one-shot CLI behavior, and current proof. Final live timeout/Retry replay and exact-head CI are running before landing. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: blocked before merge. Reviewed September 5, 2026, 11:12 AM ET / 15:12 UTC. ClawSweeper reviewWhat this changesPreserves desktop startup errors and activation recovery, improves Ollama model discovery, and makes failed setup conversations stop visibly without a second inference attempt. Merge readiness⛔ Blocked before merge - 1 item remains Still necessary: current main retains the reported onboarding failure. The patch repairs the relevant lifecycle owners, and no blocking introduced defect was found. Priority: P0 Review scores
Verification
How this fits togetherDesktop onboarding starts or connects to a Gateway, verifies model access, and hands users into setup chat. Native navigation, browser activation receipts, and agent terminal results determine whether setup can continue or safely retry. flowchart TD
A[Desktop setup choice] --> B[Gateway startup]
B --> C[Model discovery and verification]
B --> D[Visible error and retry]
C --> E[Activation ownership]
E --> F[Setup conversation]
E --> G[Recover uncertain activation]
F --> H[Agent chat or visible failure]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -62, Tests +598, Docs +9, Config +4, Other +14. Total +563 across 42 files. View PR surface stats
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 recovery with its lifecycle owner: preserve the initiating page, retain uncertain activation receipts, and expose terminal setup failures through the existing retry flow. Do we have a high-confidence way to reproduce the issue? Yes: fresh desktop setup with an installed CLI whose Gateway installation fails reaches the source-proven callback-loss path; the linked issue records two native reproductions. This review did not rerun it. Is this the best way to solve the issue? Yes: the changes repair navigation, activation ownership, and terminal-result handling at their existing owners. Extra retries would repeat failed inference, while unconditional receipt cleanup could permit competing activation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fb4e23e389c4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Resolved the artifact-access merge risk from the ClawSweeper review. The worker's DNS failure did not indicate a missing proof artifact: I fetched five published attachments directly, received HTTP 200 for each, and verified that every SHA-256 matched the locally inspected capture byte for byte. This covered native Codex chat, Codex guidance video, timeout before/after images, and the complete real-model recovery recording. The timeout and recovery recording is 8,141,694 bytes with SHA-256 ClawSweeper reported no code or security findings and marked the behavior proof sufficient. Exact-head CI is green on |
|
Merged via squash.
|
* origin/main: (46 commits) fix(gateway): keep chat metadata responsive across auth refresh (openclaw#139192) fix(doctor): keep Workshop relocation lint read-only (openclaw#139193) perf(ui): retain unchanged forwarded avatar publications (openclaw#139181) fix(config): guide exec policy migration repairs (openclaw#139143) test(i18n): refresh representative Watch key (openclaw#139197) fix(agents): preserve recovered scheduled-run outcomes (openclaw#139037) refactor(acp): simplify pending operation accounting (openclaw#139189) fix(plugin-sdk): harden account scope for pairing requests and challenges (openclaw#139142) perf(gateway): avoid redundant PR landing ancestry checks (openclaw#139186) perf(ui): release captured audio cache leases directly (openclaw#139174) fix(skills): validate names in library forms (openclaw#139184) fix(sessions): reduce cold catalog listing delays (openclaw#139146) perf(cron): scan preserved action output once (openclaw#139163) fix(agents): keep fresh tool results readable under context pressure (openclaw#139165) fix(compaction): heartbeat sessions ignore the active transcript byte cap (openclaw#136533) perf(agents): reuse snapshotted web search result rows (openclaw#139162) fix(onboarding): keep Tauri setup recoverable and verify model results (openclaw#139140) fix(memory): rank indexed sessions by source activity (openclaw#139112) perf(terminal): avoid rebuilding sanitized link fallbacks (openclaw#139159) perf(agents): bound retained tool result projection data (openclaw#139157) ...
openclaw#139140) * fix(onboarding): preserve desktop recovery and model setup results Keep Tauri startup errors on the initiating page, discover eligible Ollama models before catalog limits, and retain uncertain activation ownership. Align browser verification with the existing native/server budget and reject interrupted model output before publishing setup replies or commands. Guide app users directly to their agent; external channels remain optional. Verified with native Tauri startup/retry and Codex chat, live local models, HTTP discovery, browser recovery, terminal-result regressions, and type/lint gates. Closes openclaw#139086. * test(onboarding): keep terminal regressions in the existing graph * fix(onboarding): stop retrying terminal setup failures Use one interactive agent loop and surface its terminal error without another planner call. Preserve the separate one-shot CLI planner. Validate config proposals with the existing inference-owner guard before admission, and mirror only authoritative proposal transitions. Align recovery E2E fixtures with the real Gateway rejection metadata. * test(onboarding): align Gateway fixtures with the single agent loop
Keep terminal receipt classification with the first-run owner and replace the admission flag side channel with a local outcome. Preserve the recovery behavior landed in #139140 without changing Gateway or configuration contracts.
Keep terminal receipt classification with the first-run owner and replace the admission flag side channel with a local outcome. Preserve the recovery behavior landed in openclaw#139140 without changing Gateway or configuration contracts.
Closes #139086
What Problem This Solves
Fixes desktop onboarding that stays on Reconnecting, misses an available local model, loses safe recovery state, or keeps waiting after inference has already failed. Real model testing also found setup treating partial timed-out output as success and then retrying a failed interactive turn through a second planner call.
Why This Change Was Made
The native setup renderer now owns its bootstrap reply until completion. Ollama inspects loaded or explicitly selected models before catalog limits, preserving configured providers and current local/hosted context behavior. Model Setup retains uncertain activation receipts and uses the existing native verification budget.
Custodian and one-shot planner reject failed terminal results before consuming text or commands. Interactive setup has one agent loop: its obsolete second planner path and plumbing are removed, while one-shot CLI planning remains. Config proposals reuse the executor's inference-owner validation before approval, with cancellation and competing-proposal checks. CLI mirrors consume only explicit admission or mismatch transitions. Both setup prompts prioritize talking to the agent; external channels are optional.
Production is +162/-210 (net −48 lines). Tests/test support are +1195/-597, including moving cases into existing suites and deleting obsolete planner-only fixtures; docs +9, CI +5/-1. No new configuration options, database schema, protocol version, or dependencies.
User Impact
Startup errors stay visible and retryable. Large installed Ollama catalogs no longer hide a loaded model or delay setup by inspecting idle models. Uncertain activation cannot be overwritten by another setup attempt. Failed setup turns produce errors instead of partial success or another full model timeout. Invalid protected-config operations are rejected before offering an approval that could never succeed.
Evidence
codex, provideropenai, modelgpt-5.6-sol.UNAVAILABLEerror at 120.17 seconds, automatic verified-session recovery without replay, and a usable composer. The nexttalk to agentaction opened ordinary chat in 0.57 seconds.Native proof: https://github.com/openclaw/openclaw/actions/runs/33966184813
Live model/native chat proof: https://github.com/openclaw/openclaw/actions/runs/33966361589
Final timeout/recovery/Codex proof: https://github.com/openclaw/openclaw/actions/runs/33972454475
Final live runtime proof is from
b9cfdcec349f8c8031712df35724003520984d28; final head2ade257231fb0c98a99971a4fa227538837fcae9changes only two Gateway test fixtures. Production sources are byte-identical. All Testbox leases and task services are stopped.CPU-only ordinary chat remains prompt-prefill limited: the 0.6B model processed roughly 11.8K prompt tokens before replying, taking about 102 seconds. This repair does not claim that underpowered local hardware makes every model fast.
Native startup
Uncertain model activation
Real native Codex conversation
Verified setup guidance and handoff
tauri-onboarding-codex-guidance.webm
Real-model timeout and automatic recovery
The transport fault held only the real Ollama response's final frame. The repaired flow reports the timeout, starts a fresh verified session, and accepts the next explicit handoff without repeating the failed question.
tauri-timeout-recovery-video.webm
Follow-ups
Two pre-existing issues are recorded for separate owner work: preserve the pending first-agent name when the real setup tool replaces a proposal (
src/system-agent/onboarding-welcome.ts→src/agents/tools/system-agent-tool.ts→src/system-agent/operations-execution-helpers.ts), and tailor generic timeout advice when an owner supplies a fixed run budget (src/agents/embedded-agent-runner/run/terminal-timeout.ts). Neither requires retaining the removed interactive planner.Provenance: pre-fix behavior is directly reproduced; the introducing commit and person are not attributed.
ClawSweeper completed its review with no code or security findings. Its worker could not reopen media because of DNS failure; the maintainer verified five published attachments returned HTTP 200 and matched the inspected local files by SHA-256. Resolution: #139140 (comment)