dont clip errors errors

This commit is contained in:
shamoon committed 2026-10-11 14:00:17 -07:00
1 parent 9ff3960425
commit 4968f3195e
2 files changed
+4 -2

No files matched your search

@@ -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)
})
@@ -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()