Precompute message display parts and pause scroll handling
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user