Track tool part versions for reliable updates

This commit is contained in:
Shantur Rathore
2025-11-07 15:12:21 +00:00
parent 27da588d22
commit 7193103646
3 changed files with 17 additions and 60 deletions

View File

@@ -21,7 +21,6 @@ export interface Message {
timestamp: number
status: "sending" | "sent" | "streaming" | "complete" | "error"
version: number
partVersions?: Map<string, number>
displayParts?: MessageDisplayParts
}
@@ -29,6 +28,7 @@ export interface TextPart {
id?: string
type: "text"
text: string
version?: number
synthetic?: boolean
renderCache?: RenderCache
}