Repository navigation
fix(local-ai): model setup unavailable after install - #1254
Conversation
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 3:35 AM ET / 07:35 UTC. ClawSweeper reviewWhat this changesThe branch adds a localized Change model action for installed Local AI models that opens the existing full onboarding setup flow. Merge readinessKeep this collaborator-authored PR open for normal maintainer handling. The reviewed patch is a narrow, correctly routed repair with direct current-head native UI proof and no introduced correctness or security defect found. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherThe tray app’s Local AI page projects installed-model and runtime state, then sends user actions to app-level commands. The new action routes an installed model back through the shared setup window, which retains gateway-replacement confirmation. flowchart LR
A[Installed local model] --> B[Local AI status page]
B --> C{Model installed and idle}
C -->|Yes| D[Change model action]
C -->|No| E[Retry setup action]
D --> F[Shared onboarding window]
E --> F
F --> G[Replacement confirmation]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared onboarding route as the single model-change implementation and merge after the required checks complete or the existing test-host hang is dispositioned. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the base page offered Retry setup only for absent or unknown models, while an installed verified or loaded model had no model-setup action. The introduced state-gated action closes that exact gap. Is this the best way to solve the issue? Yes: reusing the existing onboarding route is the narrowest solution and preserves the setup window’s existing singleton behavior and replacement confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1955282412bd. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Closes #1243
What Problem This Solves
Fixes an issue where users with an installed Local AI model could stop or restart it, but could not reopen model setup from the Local AI page.
Why This Change Was Made
Adds one localized Change model action for verified or loaded models. It reuses the existing full onboarding route, so setup remains the single configuration implementation and existing Local Gateway replacement confirmation stays in force. The action remains visible for installed models and is disabled while a Local AI runtime operation is active.
User Impact
Users can reopen Local AI model setup directly from the model card without searching through Settings. The page explains that replacing an existing Local Gateway still requires confirmation.
Evidence
Focused presentation tests cover verified, loaded, missing, unknown, and runtime-busy states. Current-head live UI diagnostics are recorded under Real Behavior Proof.
Change Type
Scope
winnodeValidation
./build.ps1: passed, all 5 projects builtdotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: passed, 3,819 passed, 32 skippeddotnet test ./tests/OpenClaw.SetupEngine.Tests/OpenClaw.SetupEngine.Tests.csproj --no-restore: passed, 1,010 passeddotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName~LocalAiPageViewModelTests|FullyQualifiedName~LocalizationValidationTests": passed, 21 passeddotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --blame-hang --blame-hang-timeout 5m: blocked after 2,281 tests passed. The test host repeatedly hangs in the pre-existingBrowserProxyEndpointScopingTests.Diagnostics_NoOverride_TunnelWithoutBrowserProxyForward_DoesNotProbeTunnelLocalPlusTwonative listener inspection. The same test hangs when run alone. Crabbox was unavailable on this controller, so a remote full Tray run could not replace the blocked local run.python .agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output: clean after accepting and fixing its runtime-busy concurrency findingReal Behavior Proof
7769ea95./build.ps1 -DevBuild, launched with./run-app-local.ps1 -NoBuild -Dev -DataDir <isolated> -AllowNonMain, openedopenclaw-dev://hub/local-ai, closed the startup setup window, then invoked Change modelDownloaded and verified, modelproof-model, the safety copyReplacing the existing Local Gateway still requires confirmation, and enabled buttonChange modelwith automation IDLocalAiChangeModelLocalAiChangeModelcreated a newOpenClaw Setup (Dev)window atSecurity notice,Step 1 of 6, with an enabledContinuebutton. This proves the Local AI action uses the supported full setup route rather than a second configuration path.Security Impact
Yes, explain the risk and mitigation: N/ACompatibility and Migration
Review Conversations
Rubber-duck review identified the initial wrong-route implementation and it was corrected to reuse
ShowOnboarding. Autoreview identified the runtime-busy concurrency edge and it was corrected while preserving installed-state visibility. Final autoreview reported no accepted or actionable findings.