Skip to content

local-ai: Show Back, Restart, and Cancel during model download #1249

Closed as not planned

Description

@joelagnel

Problem

Local AI setup may download roughly 20 GB. Once the download starts, users need obvious recovery controls if it stalls, the network changes, or they reconsider enabling Local AI.

@jacobtomlinson, tagging you for setup and Local AI UX context.

Proposed behavior

Show Back, Restart, and Cancel prominently on the model-download screen. Keep all three actions directly visible while an acquisition attempt is starting, active, stalled, or retrying. After failure, keep Back and Cancel visible and present Restart as the primary retry action.

  • Back: stop or quiesce the active transfer safely and return to the Local AI model-selection step so the user can change or disable the selection.
  • Restart: stop active work, normalize partial setup state, and restart Local AI acquisition from a known-good model-selection or acquisition state.
  • Cancel: exit setup cleanly and explain where the user can resume it later.
  • Ask for confirmation when an action will discard progress or downloaded data.
  • Clearly state whether a verified partial download will be retained for resume or removed.

Scope and related issues

This issue covers only the SetupEngine Local AI model-acquisition stage before Gateway provisioning.

The implementation should reuse existing cancellation, resumable-download, and artifact-preserving rollback mechanisms where possible rather than introducing a parallel download lifecycle.

Acceptance criteria

  • Back, Restart, and Cancel remain prominently visible throughout active model download and recovery states.
  • Back returns to an editable Local AI choice without leaving a download or background setup task running.
  • Restart produces a consistent fresh setup state without duplicate workers or corrupt partial artifacts.
  • Cancel exits cleanly and provides a clear path to resume setup later.
  • Destructive actions communicate whether partial download progress will be retained.
  • Tests cover an active download, simulated stall, failure, partial artifact, and app restart.

Activity

  1. added
    clawsweeper:bulk-filed
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:ux-friction
    issue-rating: 🦞 diamond lobster
    P2
    on Aug 27, 2026
  2. clawsweeper commented on Aug 27, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 28, 2026, 12:01 PM ET / 16:01 UTC.

    Summary
    Keep open for a maintainer product decision. Current main has detailed Local AI download progress but no direct Back, Restart, or Cancel controls, and the requested actions need explicit navigation and partial-download retention policy.

    Reproducibility: yes. at source level. Current main's download progress footer has no Back, Restart, or Cancel controls, and its only cancellation trigger is page unload; no Windows runtime was executed in this read-only review.

    Maintainer decision needed

    Question Recommendation
    Should Back and Cancel retain a validated partial Local AI download by default, with destruction only after an explicit confirmation? Retain resumable partials by default: Back and Cancel stop the run and retain the validated partial for a later resume, while discard is an explicit confirmed action.

    Why: Current code supports resumable range downloads but pipeline rollback removes partial artifacts, so the requested controls require a user-facing data-retention contract before implementation.

    Next step
    A maintainer must select the visible partial-download and navigation semantics before a safe focused implementation can be scoped.

    Review details

    Best possible solution:

    Add one SetupEngine UI recovery controller after product policy is chosen: cancel and await the active run, prevent stale completion navigation, return safely to model selection, and preserve validated partials unless the user explicitly confirms discard.

    Do we have a high-confidence way to reproduce the issue?

    Yes, at source level. Current main's download progress footer has no Back, Restart, or Cancel controls, and its only cancellation trigger is page unload; no Windows runtime was executed in this read-only review.

    Is this the best way to solve the issue?

    Unclear until the retention policy is selected. Reusing the existing cancellation, rollback, and range-resume mechanisms is the maintainable path, but direct controls must not create a parallel download lifecycle.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A Back navigation that only cancels the page can race the pipeline's later completion navigation and leave the user out of the editable model-selection flow.
    • Current rollback removes the partial model, while the installer can safely resume validated partials; each action needs an intentional retain, discard, and confirmation policy.

    Codex review notes: model internal, reasoning high; reviewed against ae766dc21bbd.

    Label changes

    Label justifications:

    • P2: This is a bounded setup-flow improvement, but it requires a deliberate recovery-data policy before implementation.
    • impact:ux-friction: Users undertaking a long Local AI download currently lack visible recovery controls in the active setup screen.
    Evidence reviewed

    What I checked:

    Likely related people:

    • Joel: Commit ccd64bb introduced managed Local AI, including the download-stage surface this request extends. (role: feature introducer; confidence: high; commits: ccd64bbb7d68; files: src/OpenClaw.SetupEngine/LocalAiSetupSteps.cs, src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml)
    • Scott Hanselman: Commit ae766dc is the most recent current-main Local AI setup change and maintains adjacent setup-state UX. (role: recent area contributor; confidence: medium; commits: ae766dc21bbd; files: src/OpenClaw.SetupEngine.UI/Pages/CapabilitiesPage.xaml, src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  3. added
    local-models
    on Aug 28, 2026
  4. github-actions commented on Sep 12, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  5. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  6. locked as resolved and limited conversation to collaborators on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:bulk-filedclawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobsterlocal-modelsstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions