Precompute message display parts and pause scroll handling

This commit is contained in:
Shantur Rathore
2025-10-28 12:10:43 +00:00
parent 3a15ba7f76
commit 79e4931b28
3 changed files with 62 additions and 17 deletions

View File

@@ -1,3 +1,9 @@
export interface MessageDisplayParts {
text: any[]
tool: any[]
reasoning: any[]
}
export interface Message {
id: string
sessionId: string
@@ -5,4 +11,5 @@ export interface Message {
parts: any[]
timestamp: number
status: "sending" | "sent" | "streaming" | "complete" | "error"
displayParts?: MessageDisplayParts
}