feat(FN-1975): stream chat session updates through SSE

- Emit chat:session:updated from ChatStore when message deletion mutates a session and cover deleteMessage false returns
- Pass ChatStore into SSE setup and forward chat session update events to connected clients
- Update useChat to consume SSE updates in real time with safer EnrichedChatSession typing
- Add core and dashboard tests for chat-store emissions, SSE forwarding, route wiring, and hook behavior
This commit is contained in:
Fusion
2026-04-18 00:44:27 -07:00
committed by gsxdsm
parent ddbb60e297
commit 17fcbfe6c8
12 changed files with 692 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ import type {
AgentRatingInput,
ChatSession,
ChatMessage,
EnrichedChatSession,
Roadmap,
RoadmapMilestone,
RoadmapFeature,
@@ -5298,8 +5299,10 @@ export async function fetchSkillsCatalog(
// ── Chat API ─────────────────────────────────────────────────────────────────
// EnrichedChatSession is imported from @fusion/core above
export interface ChatSessionListResponse {
sessions: ChatSession[];
sessions: EnrichedChatSession[];
}
export interface ChatSessionResponse {