feat(FN-4381): flush queued chat messages on recovery completion

Fixes chat hooks to flush queued messages when recovery completes, preventing stale messages from lingering in useChat and useQuickChat; includes tests for both hooks.

Fusion-Task-Id: FN-4381
This commit is contained in:
Fusion
2026-05-13 13:46:21 -07:00
committed by gsxdsm
parent 039e9a2d02
commit c50e152a87
5 changed files with 211 additions and 44 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": patch
---
Fix chat queued follow-up delivery so pending messages auto-send when streaming completes through recovery paths (SSE message-added recovery, polling finalization, and visibility-resume), not only fresh-send onDone/onError handlers.