Repository navigation
Description
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
-
Use fresh state with valid account credentials.
-
Configure
openai/gpt-6.1-terraand pin its agent runtime toopenclaw, without manually registering a provider model row. -
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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Nov 19, 2026
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:
Codex review notes: model internal, reasoning medium; reviewed against 9fd634855e3e.
Label changes
Label changes:
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.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:linked-pr-open: Current issue advisory state selects this label.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:
src/system-agent/setup-inference-turn.ts:182, 9fd634855e3e)src/agents/embedded-agent-runner/run-orchestrator.ts:335, 9fd634855e3e)docs/cli/setup.md:19, 9fd634855e3e)src/agents/prepared-model-runtime-lease.ts:421, 9fd634855e3e)qa/maturity-scores.yaml:416, 9fd634855e3e)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 19, 2026, 2:37 PM ET / 19:37 UTC.