Prevent duplicate room sends and avoid restoring composer text when ambiguous failures still delivered the message. - guard room composer sends with an in-flight ref to prevent double-dispatch - treat ambiguous post-send refresh failures as delivered when recovery confirms the user message - centralize optimistic/SSE user-message reconciliation to replace temp messages instead of duplicating them - add and update chat room hook/component tests that cover double-send prevention and delivered-on-ambiguous-failure behavior - add a patch changeset for @runfusion/fusion documenting the room chat reliability fix Files changed: .changeset/few-dingos-smile.md | 5 ++ packages/dashboard/app/components/ChatView.tsx | 8 +++ .../components/__tests__/ChatView.rooms.test.tsx | 27 ++++++++++ .../app/hooks/__tests__/useChatRooms.test.ts | 48 +++++++++++++++-- packages/dashboard/app/hooks/useChatRooms.ts | 62 +++++++++++++++------- 5 files changed, 126 insertions(+), 24 deletions(-) Fusion-Task-Id: FN-5790 Fusion-Task-Lineage: a1ac5e4f-4cc2-4cf9-8bc1-42587d0d1d1b
130 KiB
130 KiB