Skip to content

setup rejects account-available models when the model catalog is cold #202016

Closed

Description

@daniel-lxs

openclaw setup can fail with Unknown model: openai/gpt-6.1-terra even though the connected account offers that model. I reproduced it with the model's agent runtime pinned to openclaw.

Steps to reproduce

  1. Use fresh state with valid account credentials.

  2. Configure openai/gpt-6.1-terra and pin its agent runtime to openclaw, without manually registering a provider model row.

  3. Run:

    openclaw setup --message "Reply exactly OK. Do not change any settings or call tools." --json

Expected: Setup completes its inference check and shows the system overview.

Actual: Setup reports Unknown model before sending an inference request.

Reproduced on: macOS, OpenClaw 2026.11.6 and main 7d6f2b9.

Workaround: A completed openclaw models list --refresh --provider openai --json resolves it. A refresh stopped before it completes does not.

Cause: The setup inference check resolves the model against a cold static catalog without first loading the account's model listing.

Proposed fix: Load the missing provider catalog before the setup inference check, wait for it, and keep setup's read-only config and auth behaviour and its cancellation cleanup.

Evidence: A regression test with a synthetic provider fails with the same error on main and passes with the fix.

Activity

  1. added
    clawsweeper:intake:bug
    P2
    clawsweeper:linked-pr-open
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:auth-provider
    issue-rating: 🦞 diamond lobster
    and removed
    clawsweeper:intake:bug
    on Nov 19, 2026
  2. clawsweeper commented on Nov 19, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Current main retains the cold-catalog failure path, and an open fix PR explicitly owns the repair; the MEMBER-authored issue must remain open.

    Reproducibility: Current source shows setup taking a static isolated snapshot without missing-model discovery; the reporter describes release and main reproductions, and the linked PR reports baseline-red synthetic-provider coverage, which this read-only review did not execute.

    Next step
    Review and validate #202019, then let its merge close this issue.

    Review details

    Best possible solution:

    Setup should await provider-scoped discovery for a missing model while preserving read-only state, cancellation, and exact runtime selection.

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

    Current source shows setup taking a static isolated snapshot without missing-model discovery; the reporter describes release and main reproductions, and the linked PR reports baseline-red synthetic-provider coverage, which this read-only review did not execute.

    Is this the best way to solve the issue?

    The candidate targets the correct boundary by discovering only the missing model's provider before snapshot capture, rather than registering hard-coded model rows or changing authentication policy.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The candidate reports synthetic HTTP-provider coverage; live account and macOS verification remain outstanding.

    Codex review notes: model internal, reasoning medium; reviewed against 9fd634855e3e.

    Label changes

    Label changes:

    • add P2: A specific configured-model setup check fails with cold inventory; a completed catalog refresh provides a workaround for this advanced CLI workflow.
    • add impact:auth-provider: Missing account model metadata prevents the configured provider route from reaching inference.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:linked-pr-open: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.

    Label justifications:

    • P2: A specific configured-model setup check fails with cold inventory; a completed catalog refresh provides a workaround for this advanced CLI workflow.
    • impact:auth-provider: Missing account model metadata prevents the configured provider route from reaching inference.
    Evidence reviewed

    What I checked:

    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; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 19, 2026, 2:37 PM ET / 19:37 UTC.

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:linked-pr-openclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:auth-providerissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions