From 560d1e53ed30f86635f182c6af51feca1863d458 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 11 Oct 2026 13:57:15 -0700 Subject: [PATCH] dont clip errors errors --- src-ui/src/app/components/chat/chat/chat.component.spec.ts | 5 +++-- src-ui/src/app/components/chat/chat/chat.component.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src-ui/src/app/components/chat/chat/chat.component.spec.ts b/src-ui/src/app/components/chat/chat/chat.component.spec.ts index f0184c9bb..8bf1f44ea 100644 --- a/src-ui/src/app/components/chat/chat/chat.component.spec.ts +++ b/src-ui/src/app/components/chat/chat/chat.component.spec.ts @@ -163,9 +163,10 @@ describe('ChatComponent', () => { component.input.set('Hello') component.sendMessage() + mockStream$.next('Partial') mockStream$.error('Error') - expect(component.messages()[1].content).toContain( - '⚠️ Error receiving response.' + expect(component.messages()[1].content).toBe( + 'Partial\n\n⚠️ Error receiving response.' ) expect(component.loading()).toBe(false) }) diff --git a/src-ui/src/app/components/chat/chat/chat.component.ts b/src-ui/src/app/components/chat/chat/chat.component.ts index 0ffcb5d3d..902b18187 100644 --- a/src-ui/src/app/components/chat/chat/chat.component.ts +++ b/src-ui/src/app/components/chat/chat/chat.component.ts @@ -121,6 +121,7 @@ export class ChatComponent implements OnInit { }, error: () => { this.clearSlowResponse() + this.flushTypewriter(assistantMessage) assistantMessage.content += '\n\n⚠️ Error receiving response.' assistantMessage.isStreaming = false this.notifyMessagesChanged()