kimi-code/docs/en/configuration
7Sageer bd5e32f683
fix(secondary-model): stop rewriting the section when providers refresh or are removed (#3284)
* fix(secondary-model): stop rewriting the section when providers refresh or are removed

Provider refresh, provider deletion/rename, catalog/registry import,
OAuth logout, and SDK removeProvider used to cascade into the user's
[secondary_model] block: pool entries were silently pruned, and the
whole section was deleted when its effective default dangled. The
cascade ran from a cache-refresh path (including an unattended 6h
scheduler), so upstream model-list changes could irreversibly destroy
hand-written configuration without any notice.

Config is user intent; the catalog is an availability snapshot. Stop
rewriting the section on every provider/models writer. An entry whose
model no longer resolves fails pool validation on the next session
create with a message naming the offending alias, which is the same
fail-fast contract hand-written typos already had.

* chore(sdk): add changeset for the removed secondary-model cascade export

* Delete .changeset/sdk-remove-secondary-model-cascade.md

Signed-off-by: 7Sageer <sag77r@hotmail.com>

* Delete .changeset/secondary-model-no-silent-rewrite.md

Signed-off-by: 7Sageer <sag77r@hotmail.com>

---------

Signed-off-by: 7Sageer <sag77r@hotmail.com>
2026-08-27 16:50:42 +08:00
..
config-files.md fix(secondary-model): stop rewriting the section when providers refresh or are removed (#3284) 2026-08-27 16:50:42 +08:00
data-locations.md docs(cron): drop references to the non-existent kimi resume command (#2050) 2026-07-22 16:59:08 +08:00
env-vars.md docs: rework web guide, interaction and getting-started pages (#3260) 2026-08-26 17:00:57 +08:00
overrides.md docs: fix dead anchor links in en/zh docs (#2348) 2026-07-29 15:57:48 +08:00
providers.md docs: polish the 0.32.0 changelog and fill 0.32.0 doc gaps (#2594) 2026-08-04 16:31:25 +08:00