mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:20:45 +00:00
fix: wizard no clobber model.primary on re-run
two bugs. both squash user model choice silently. bug 1: applyDefaultModel() unconditional primary: model overwrite. wizard calls with setDefaultModel=true, provider returns its default (e.g. openrouter/auto), bam user primary gone. fix: existingPrimary ?? model. bug 2: applyModelFallbacksFromSelection() phantom primary injection. when no primary configured, resolvedKey (hardcoded default) written as primary via nullish coalescing fallback. fix: conditional spread — only include primary key when one actually existed. tests for both. closes #70696
This commit is contained in:
committed by
Peter Steinberger
parent
d795000377
commit
8d57d745cf
@@ -13,6 +13,9 @@ Note: The **Model** section now includes a multi-select for the
|
||||
`agents.defaults.models` allowlist (what shows up in `/model` and the model picker).
|
||||
Provider-scoped setup choices merge their selected models into the existing
|
||||
allowlist instead of replacing unrelated providers already in the config.
|
||||
Re-running provider auth from configure preserves an existing
|
||||
`agents.defaults.model.primary`; use `openclaw models auth login --provider <id> --set-default`
|
||||
or `openclaw models set <model>` when you intentionally want to change the default model.
|
||||
|
||||
When configure starts from a provider auth choice, the default-model and
|
||||
allowlist pickers prefer that provider automatically. For paired providers such
|
||||
|
||||
Reference in New Issue
Block a user