Skip to content

No loading indicator during local AI model load — first prompt shows "Agent error" #1445

Closed as not planned

Description

@larroy

When starting the OpenClaw Windows node configured to use a local AI model, sending the first prompt while the model is still loading/starting results in an "Agent error" being shown to the user. There is no visual feedback (spinner, "model loading…" status, progress bar, etc.) indicating that the model is still initializing, so the error is confusing — it looks like a failure rather than a transient startup state.

Steps to reproduce:

  1. Start OpenClaw Windows node with a local AI model configured.
  2. Immediately send a prompt while the model is still loading.
  3. Observe "Agent error" with no indication that this is due to the model still starting up.

Expected behavior:

  • The UI should show a clear loading/starting state for the local model (e.g. "Model is loading, please wait…") instead of allowing prompts to fail silently with a generic "Agent error".
  • Ideally, prompt submission should be disabled/queued until the model is ready, or the error message should explicitly explain the model is still loading and suggest retrying.

Environment: OpenClaw Windows node, local AI model backend.

Activity

  1. larroy commented on Sep 18, 2026

    @larroy
    CollaboratorAuthor
    Image
  2. added
    P2
    impact:ux-friction
    issue-rating: 🦪 silver shellfish
    on Sep 18, 2026
  3. clawsweeper commented on Sep 18, 2026

    @clawsweeper

    Codex review: this still needs some work. Reviewed October 8, 2026, 1:57 AM ET / 05:57 UTC.

    Summary
    Keep open: current main still lacks model-loading context in chat, and the screenshot establishes a recoverable first-prompt failure. Its cause remains unverified, and this collaborator-authored issue requires explicit maintainer judgment.

    Reproducibility: no. high-confidence current-main reproduction is established. The screenshot proves the visible failure and later success, but app/Gateway versions, backend/model identity, and correlated load diagnostics are missing.

    Maintainer decision needed

    • Question: Should chat retain prompt submission with explicit model-loading feedback, or hold new submissions while the selected managed model is confirmed to be loading?
    • Recommendation: Show status and retain submission: Display confirmed loading status and actionable failure guidance while preserving on-demand loading and explicit user resubmission.
    • Why: The request offers both interactions, while the existing contract intentionally permits a verified unloaded model. Source cannot choose the desired submission policy.

    Next step
    Correlate a failed first prompt with redacted current-attempt diagnostics and versions, then choose the loading interaction before scoping implementation.

    Review details

    Best possible solution:

    Preserve lazy loading, expose confirmed model-starting status inline in chat, and offer explicit resubmission after a failed load without automatically replaying agent or tool work.

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

    No high-confidence current-main reproduction is established. The screenshot proves the visible failure and later success, but app/Gateway versions, backend/model identity, and correlated load diagnostics are missing.

    Is this the best way to solve the issue?

    Unclear: loading feedback is useful, but disabling or queuing prompts requires a chosen interaction and confirmed load state. Preserve lazy loading and avoid labeling every generic provider error as initialization.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The failed request has not been correlated with current-attempt model status or Gateway diagnostics; startup delay, memory pressure, and other provider failures must not receive the same inferred explanation.

    Codex review notes: model internal, reasoning medium; reviewed against 037c17dcb581.

    Label changes

    Label changes:

    • add P2: The screenshot demonstrates recovery on a subsequent prompt, without evidence of a current persistent first-use blocker.
    • add issue-rating: 🦐 gold shrimp: Current issue advisory state selects this label.
    • add clawsweeper:needs-info: Current issue advisory state selects this label.
    • add clawsweeper:needs-product-decision: Current issue advisory state selects this label.
    • remove P1: Current review triage priority is P2, so this older priority label is no longer current.
    • remove issue-rating: 🦪 silver shellfish: Current issue advisory state no longer selects this label.

    Label justifications:

    • P2: The screenshot demonstrates recovery on a subsequent prompt, without evidence of a current persistent first-use blocker.
    • impact:ux-friction: The generic error gives users no explanation for a recoverable first-prompt failure.
    Evidence reviewed

    What I checked:

    Likely related people:

    • joelagnel: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • karkarl: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    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.
  4. added
    P1
    and removed
    P2
    on Sep 22, 2026
  5. added
    clawsweeper:needs-maintainer-review
    clawsweeper:no-new-fix-pr
    on Sep 22, 2026
  6. github-actions commented on Oct 7, 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.

  7. removed
    P1
    issue-rating: 🦪 silver shellfish
    on Oct 8, 2026
  8. 10 remaining items

  9. joelagnel commented on Oct 16, 2026

    @joelagnel
    Collaborator

    Status update on the chat send hold for #1445 (PR #1738):

    The fix needs more work, but it is a working option. On Windows ARM64 with the WSL Gateway, a chat sent while companion Local AI restarts is held until the Gateway lists its default model again (about 20-25 s), then answered, instead of failing with "This model was not found". Before/after screenshots and logs are in the PR description.

    What still needs work:

    • Each review round finds another edge case in the per-session model handling (sessions switched to a cloud model, pending or rejected model switches). That handling has roughly doubled the size of the change.
    • A send in the first seconds after start, before the Gateway applies the route withdrawal, is not held.
    • Messages already in the queue are dispatched without a new check.
    • The cloud-model paths are covered by code review only, not by device proof or new tests.

    If QA considers #1445 a show stopper, we can merge this as is and follow up on the items above. Otherwise the PR stays open while a cleaner fix is worked out.

  10. github-actions commented on Oct 31, 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.

  11. github-actions commented on Nov 8, 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.

  12. locked as resolved and limited conversation to collaborators on Nov 11, 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:needs-infoclawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:ux-frictionissue-rating: 🦐 gold shrimpstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions