gsxdsm
a65633d878
FN-7368: keep accepted chat sends visible after provider errors
Preserve sent chat turns when provider failures arrive after the server accepts a stream.
- Track whether chat stream errors happen before or after server acceptance.
- Reconcile persisted user-message echoes with optimistic bubbles across global chat and planner chat.
- Preserve delivered room-chat messages when reply generation or recovery refresh fails.
- Cover accepted-error and pre-acceptance rollback behavior with focused dashboard tests.
Files changed:
.changeset/fn-7368-chat-provider-error.md | 7 ++
packages/dashboard/app/api/legacy.ts | 25 ++++--
.../app/components/TaskPlannerChatTab.tsx | 47 ++++++++++-
.../__tests__/TaskPlannerChatTab.test.tsx | 71 ++++++++++++++++
.../dashboard/app/hooks/__tests__/useChat.test.ts | 96 ++++++++++++++++++++++
.../app/hooks/__tests__/useChatRooms.test.ts | 25 ++++++
.../app/hooks/createChatStreamHandlers.ts | 10 +--
packages/dashboard/app/hooks/useChat.ts | 48 ++++++++---
packages/dashboard/app/hooks/useChatRooms.ts | 5 +-
9 files changed, 305 insertions(+), 29 deletions(-)
Fusion-Task-Id: FN-7368
Fusion-Task-Lineage: b7935c3f-3604-4ed5-b32e-a6ead536a991
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-01 07:50:52 -07:00
..
2026-06-18 06:36:03 -07:00
2026-04-08 10:39:38 -07:00
2026-06-27 09:28:29 -07:00
2026-06-24 09:23:03 -07:00
2026-06-27 18:08:48 -07:00
2026-05-21 20:06:48 -07:00
2026-06-08 13:32:58 -07:00
2026-05-26 21:57:31 -07:00
2026-05-20 03:19:44 -07:00
2026-04-08 16:48:35 -07:00
2026-06-27 09:28:29 -07:00
2026-06-28 13:17:33 -07:00
2026-06-27 22:15:53 -07:00
2026-06-22 05:20:22 -07:00
2026-06-29 15:34:06 -07:00
2026-05-15 22:24:12 -07:00
2026-05-21 18:15:26 -07:00
2026-06-15 02:29:08 -07:00
2026-05-13 15:05:05 -07:00
2026-04-27 19:59:52 -07:00
2026-06-17 04:51:31 -07:00
2026-06-29 21:02:34 -07:00
2026-06-30 09:04:03 -07:00
2026-06-23 19:52:52 -07:00
2026-06-24 01:13:33 -07:00
2026-07-01 07:50:52 -07:00
2026-05-20 20:27:11 -07:00
2026-05-20 19:58:49 -07:00
2026-07-01 07:50:52 -07:00
2026-05-15 15:19:56 -07:00
2026-06-24 09:23:03 -07:00
2026-05-23 20:44:01 -07:00
2026-05-17 11:33:56 -07:00
2026-06-24 09:23:03 -07:00
2026-05-24 00:11:08 -07:00
2026-04-27 19:59:52 -07:00
2026-05-21 18:15:26 -07:00
2026-04-20 15:37:32 -07:00
2026-05-20 03:19:44 -07:00
2026-05-03 14:10:11 -07:00
2026-05-03 07:47:45 -07:00
2026-06-09 07:24:39 -07:00
2026-06-25 08:35:44 -07:00
2026-05-19 23:04:12 -07:00
2026-06-27 22:02:59 -07:00
2026-05-20 03:19:44 -07:00
2026-04-12 21:40:34 -07:00
2026-04-12 21:40:34 -07:00
2026-05-20 04:12:40 -07:00
2026-04-24 19:39:20 -07:00
2026-06-03 22:35:28 -07:00
2026-06-26 13:57:00 -07:00
2026-05-19 23:04:12 -07:00
2026-05-16 09:21:06 -07:00
2026-06-03 17:33:16 -07:00
2026-04-14 11:29:16 -07:00
2026-06-23 19:46:55 -07:00
2026-06-23 21:09:36 -07:00
2026-05-21 16:09:53 -07:00
2026-05-04 06:12:12 -07:00
2026-04-25 18:22:37 -07:00
2026-04-28 14:25:55 -07:00
2026-05-23 20:44:01 -07:00
2026-05-21 16:09:53 -07:00
2026-05-10 18:04:43 -07:00
2026-06-30 09:09:29 -07:00
2026-06-13 10:29:24 -07:00
2026-06-27 12:15:42 -07:00
2026-06-13 11:46:53 -07:00
2026-05-20 03:19:44 -07:00
2026-04-15 02:53:06 -07:00
2026-06-30 08:20:07 -07:00
2026-04-09 13:01:19 -07:00
2026-05-21 16:09:53 -07:00
2026-06-10 09:21:48 -07:00
2026-06-11 09:21:23 -07:00
2026-06-30 01:50:52 -07:00
2026-05-07 08:49:18 -07:00
2026-05-06 02:14:05 -07:00
2026-04-16 10:04:44 -07:00
2026-06-23 21:09:36 -07:00
2026-05-21 18:15:26 -07:00
2026-05-17 08:49:51 -07:00
2026-04-20 22:10:07 -07:00
2026-04-15 19:53:22 -07:00
2026-06-07 02:26:00 +07:00
2026-03-31 01:26:57 -07:00
2026-04-27 19:59:52 -07:00
2026-04-14 09:29:08 -07:00
2026-04-24 08:55:02 -07:00
2026-05-21 16:09:53 -07:00
2026-06-10 09:21:48 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-05-21 18:15:26 -07:00
2026-05-19 23:04:12 -07:00
2026-06-23 20:03:44 -07:00
2026-06-17 03:29:39 -07:00
2026-04-10 10:44:48 -07:00
2026-04-20 10:16:13 -07:00
2026-05-07 18:35:45 -07:00
2026-05-07 23:21:05 -07:00
2026-06-24 01:13:33 -07:00
2026-06-14 15:29:35 -07:00
2026-04-29 17:23:22 -07:00
2026-05-20 19:58:49 -07:00
2026-05-17 19:11:59 -07:00
2026-06-30 13:25:35 -07:00
2026-06-09 12:57:21 -07:00
2026-06-30 00:03:37 -07:00
2026-06-30 13:43:28 -07:00
2026-04-24 19:39:20 -07:00
2026-05-19 19:03:10 -07:00
2026-04-27 01:40:07 -07:00
2026-06-02 09:24:42 -07:00
2026-06-11 19:37:25 -07:00
2026-06-22 05:20:22 -07:00
2026-06-29 23:17:49 -07:00
2026-04-27 19:59:52 -07:00
2026-04-16 23:07:40 -07:00
2026-06-10 09:21:48 -07:00