fix(webui): preserve answer checkpoints and stream order (#6368)

* fix(webui): preserve answer checkpoints and stream order

* fix(stream): close hosted-tool answer segments at the producer
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-21 18:30:52 +08:00
1 parent d2ab462b42
commit 76da55994b
19 files changed
+745 -195

No files matched your search

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