fix(FN-2013): flush buffered SSE events at stream end

- Remove the trailing-newline guard when flushing pending SSE buffer data in streamChatResponse
- Re-enable the regression test covering final done events without a trailing blank line
- Add parser coverage for chunk-split events, newline-terminated streams, and incomplete trailing fragments
- Add a patch changeset for @gsxdsm/fusion documenting the SSE final-buffer flush fix
This commit is contained in:
Fusion
2026-04-18 14:55:20 -07:00
committed by gsxdsm
parent 39f38c0abf
commit c10ff474cc
3 changed files with 67 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
---
"@gsxdsm/fusion": patch
---
Fix dashboard `streamChatResponse()` SSE parsing so buffered final events are flushed when streams end without a trailing newline, and add regression coverage.