diff --git a/src/app/components/chat/chat.component.ts b/src/app/components/chat/chat.component.ts index e7625387..7820e9f6 100644 --- a/src/app/components/chat/chat.component.ts +++ b/src/app/components/chat/chat.component.ts @@ -1272,7 +1272,11 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy { if (existingIndex >= 0) { const existingEvent = events[existingIndex]; - + + if (uiEvent.thought && existingEvent.thought) { + uiEvent.text = (existingEvent.text || '') + (uiEvent.text || ''); + } + // Preserve functionResponses and functionCalls if not present in new event if (!uiEvent.functionResponses || uiEvent.functionResponses.length === 0) { uiEvent.functionResponses = existingEvent.functionResponses;