fix(webui): admit history without dropping live output (NAN-311)

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-22 01:22:49 +08:00
1 parent df63526ddf
commit b37a23698d
21 files changed
+3026 -1607

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
import type { ThreadCheckpoint } from "./thread-checkpoint";
import type { ThreadTranscriptSnapshot } from "./thread-transcript";
import { MemoryLruCache } from "./memory-lru-cache";
/** Bounded replay cache; temporary chats remain pinned because they have no disk history. */
export class ThreadMessageCache<T extends ThreadCheckpoint = ThreadCheckpoint> extends MemoryLruCache<T> {
export class ThreadMessageCache extends MemoryLruCache<ThreadTranscriptSnapshot> {
constructor(
isPinned: (key: string) => boolean,