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:
1 parent
d2ab462b42
commit
76da55994b
19 files changed
+745
-195
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user