Fix KB settings badge stuck on unconfigured after bind (0.1.38).

Reload Host kbRoot after browse/save so the status badge tracks the live package instead of a stale snapshot.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-16 12:50:04 +08:00
parent 0f31a6648a
commit 1b4c402723
9 changed files with 261 additions and 50 deletions

View file

@ -218,7 +218,9 @@ export class CardForm<T> {
private async store(field: string, value: unknown): Promise<boolean> {
await this.scope.set(field, value)
return this.userLayer()?.[field] === value
// `settings.mutate` can settle without throwing on a refused write; confirm
// via the resolved section value (user layer alone can lag or omit keys).
return this.sectionValue(field) === value || this.userLayer()?.[field] === value
}
private stage(field: string, edit: StagedEdit): void {