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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user