gsxdsm
8814925209
FN-8504: restore in-flight chat state after re-entry
Restore authoritative streaming state when users return to an active chat session.
- Delay stream attachment until the authoritative session snapshot is loaded
- Guard stream callbacks and SSE updates by selection incarnation
- Cover re-entry, stale refresh, and transcript restoration scenarios
- Add a patch changeset for the chat-state fix
Files changed:
.changeset/fn-8504-chat-reentry-state.md | 7 +
.../__tests__/ChatView.streaming-thread.test.tsx | 47 ++++
.../dashboard/app/hooks/__tests__/useChat.test.ts | 245 ++++++++++++++++++++-
packages/dashboard/app/hooks/useChat.ts | 159 +++++++++----
4 files changed, 408 insertions(+), 50 deletions(-)
Fusion-Task-Id: FN-8504
Fusion-Task-Lineage: 0b339eb9-78d1-4db5-ae3a-e8314380662c
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-22 19:20:55 -07:00
..
2026-07-22 13:47:58 -07:00
2026-07-21 21:01:23 -07:00
2026-07-22 19:10:06 -07:00
2026-07-22 19:20:55 -07:00
2026-07-21 21:01:23 -07:00
2026-07-21 21:01:23 -07:00
2026-07-22 18:32:36 -07:00
2026-07-22 19:10:06 -07:00
2026-07-21 21:01:23 -07:00
2026-07-22 01:32:14 -07:00
2026-06-08 15:19:27 -07:00
2026-07-22 15:25:20 -07:00