-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
[Bug]: Regression of #68390 — openclaw models set <alias> still resolves to bogus openai/sonnet on 2026.5.12 #83233
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
openclaw models set <alias>still resolves the alias to a bogus<inferred-provider>/<alias>entry instead of looking up the configured alias table. This appears to be a regression of #68390 (closed 2026-04-25); reproduced on2026.5.12 (f066dd2). Filing as a new issue because #68390 is locked.Steps to reproduce
npm i -g openclaw@latest(no prior~/.openclawconfig carried over).openclaw models set sonnet.Expected behavior
Per #68390's accepted fix scope: the alias
sonnetshould resolve toanthropic/claude-sonnet-4-6, andagents.defaults.model.primaryshould be set to that id without creating a new model entry.Actual behavior
Default is silently written as
openai/sonnet, notanthropic/claude-sonnet-4-6:On next gateway restart the bogus model is auto-enabled (still without resolving to the real Sonnet):
Workaround is the same as in the original report — pass the fully qualified id:
openclaw models set anthropic/claude-sonnet-4-6resolves correctly.OpenClaw version
2026.5.12 (f066dd2)Operating system
macOS 15.x (Darwin 25.4.0)
Install method
npm i -g openclaw@latest(prefix~/.npm-global)Model
N/A (config-time failure, before any model is invoked)
Provider / routing chain
N/A
Additional provider/model setup details
No prior custom config.
~/.openclaw/openclaw.jsonwritten for the first time byopenclaw models set sonnet. Auth profile present:anthropic:claude-cli(claude-cli/oauth). Happy to attach the resultingopenclaw.jsonsnapshot on request.Logs, screenshots, and evidence
See
Actual behaviorsection above for the literalmodels set/models statusoutput and the post-restart gateway log line.Impact and severity
Medium. Silent misconfig leaves users on a bogus model id that doesn't exist in any provider catalog; first real chat turn fails. Has a workaround (use fully qualified id) but the alias path is the obvious user-facing one and the failure is silent at config time.
Related
openclaw models set <alias>does not resolve aliases; creates bogus model entries #68390 (closed 2026-04-25, locked)./modelsand Web chat model dropdown show full catalog (900+ models) instead of only configured providers #74423.