perf(webui): restore cached threads and load mention catalogs on demand

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-24 23:32:22 +08:00
1 parent c370e2a5a5
commit 1a78ae2b99
13 files changed
+316 -65

No files matched your search

+1 -1
View File
@@ -369,7 +369,7 @@ function parseThreadProjectionEvent(value: unknown): ThreadProjectionEvent {
throw new Error(`Invalid WebUI thread projection event: ${value.event}`);
}
function parseWebuiThreadPayload(value: unknown): WebuiThreadPersistedPayload {
export function parseWebuiThreadPayload(value: unknown): WebuiThreadPersistedPayload {
if (!isRecord(value) || typeof value.schemaVersion !== "number") {
throw new Error("Invalid WebUI thread response");
}