From cd7f6cdfbd62bf4cf13c953bdb79d02158b6019e Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Thu, 25 Jun 2026 10:52:13 +0900 Subject: feat(core): chunks retry-banner, wire conformance, ws logic, history adapter - core/chunks: add retry-banner view-model (+test), update reducer/selectors/types - core/wire: update conformance checks (+test) - adapters/ws: update reconnect logic (+tests) - adapters/history: new client-side routing adapter (history + popstate wrapper) --- src/adapters/ws/logic.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/adapters/ws/logic.ts') diff --git a/src/adapters/ws/logic.ts b/src/adapters/ws/logic.ts index b11c5c4..d1a5b5f 100644 --- a/src/adapters/ws/logic.ts +++ b/src/adapters/ws/logic.ts @@ -115,9 +115,11 @@ export function parseServerMessage(data: string): WsServerMessage | null { } case "conversation.open": { if (typeof parsed.conversationId !== "string") return null; + if (typeof parsed.workspaceId !== "string") return null; const msg: ConversationOpenMessage = { type: "conversation.open", conversationId: parsed.conversationId, + workspaceId: parsed.workspaceId, }; return msg; } @@ -127,10 +129,12 @@ export function parseServerMessage(data: string): WsServerMessage | null { if (parsed.status !== "active" && parsed.status !== "idle" && parsed.status !== "closed") { return null; } + if (typeof parsed.workspaceId !== "string") return null; const msg: ConversationStatusChangedMessage = { type: "conversation.statusChanged", conversationId: parsed.conversationId, status: parsed.status, + workspaceId: parsed.workspaceId, }; return msg; } -- cgit v1.2.3