Skip to content

Commit 082f09d

Browse files
committed
docs(tui): clarify /connect stale-alias cleanup depends on removeProvider
1 parent 9ef1cc6 commit 082f09d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/kimi-code/src/tui/kimi-tui.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5124,8 +5124,10 @@ export class KimiTUI {
51245124
if (wire === undefined) return;
51255125
const baseUrl = catalogBaseUrl(entry, wire);
51265126

5127-
// Remove stale provider config first so old model aliases are fully
5128-
// cleared (setConfig patch merge cannot delete nested keys).
5127+
// Remove stale provider config first: setConfig is a deep-merge patch that
5128+
// cannot delete keys, and applyCatalogProvider's in-memory cleanup below
5129+
// does not survive that merge — removeProvider is the only step that
5130+
// actually drops old model aliases from disk.
51295131
const existingConfig = await this.harness.getConfig();
51305132
if (existingConfig.providers[providerId] !== undefined) {
51315133
await this.harness.removeProvider(providerId);

0 commit comments

Comments
 (0)