Refresh provider models from the public Pi catalog (#555)

* feat(provider): refresh models from the public Pi catalog

* fix(provider): simplify provider card actions
This commit is contained in:
Yiling-J
2026-11-30 10:59:51 +08:00
committed by GitHub
parent d315253450
commit e3fe5792b9
34 changed files with 1618 additions and 4414 deletions
+3 -1
View File
@@ -92,8 +92,10 @@ export async function openSessionCache(sessionId: string) {
throw new Error('Session commit sequence mismatch')
seq = receipt.seq
}
if (result.stored !== commits.length)
if (result.kind === 'refused') {
throw result.refused ?? new Error('Session restoration refused')
}
if (result.stored !== commits.length) throw new Error('Session restoration was incomplete')
}
await save(true)
} catch (error) {