Fusion Agent
519180b9e2
FN-026: fix chat editing and conversation rewind
Make edited chat messages replace their prior turns while rewinding conversation state consistently across the dashboard and API.\n\n- Add message-edit and rewind-session server routes and persistence behavior.\n- Update chat hooks, planner UI, and legacy streaming compatibility for replacement edits.\n- Add regression coverage and document the editing and rewind behavior.\n\nFiles changed:\n .changeset/fn-026-chat-message-edit-replacement.md | 7 +\n docs/dashboard-guide.md | 8 +\n .../app/api/__tests__/legacy-chat-stream.test.ts | 23 +++\n packages/dashboard/app/api/chat/chat.ts | 42 ++---\n packages/dashboard/app/api/legacy.ts | 2 +-\n packages/dashboard/app/components/TaskPlannerChatTab.tsx | 101 +++++++----\n .../__tests__/TaskPlannerChatTab.test.tsx | 81 +++++----\n packages/dashboard/app/hooks/__tests__/useChat.resync.test.ts | 1 -\n packages/dashboard/app/hooks/__tests__/useChat.test.ts | 45 +++--\n packages/dashboard/app/hooks/useChat.ts | 108 ++++++------\n .../__tests__/chat-manager-rewind-session.test.ts | 49 ++++++\n .../src/__tests__/routes-chat-message-edit.test.ts | 195 +++++++++++++++++++++\n packages/dashboard/src/chat.ts | 106 ++++++++++-\n .../dashboard/src/routes/register-chat-routes.ts | 150 ++++++----------\n 14 files changed, 660 insertions(+), 258 deletions(-)
Fusion-Task-Id: FN-026
Fusion-Task-Lineage: ea69be74-def9-4c68-ac13-c1b51b8b5f69
Co-authored-by: Fusion <noreply@runfusion.ai>
2026-08-20 03:55:39 +00:00
..
2026-08-15 21:42:34 -07:00
2026-07-12 22:12:18 -07:00
2026-08-03 00:20:53 -07:00
2026-08-15 21:42:34 -07:00
2026-07-15 15:30:55 -07:00
2026-08-20 03:55:39 +00:00
2026-05-18 04:02:39 -07:00
2026-05-17 19:03:51 -07:00
2026-06-25 16:31:10 -07:00
2026-07-30 05:33:00 -07:00
2026-07-18 13:50:58 -07:00