From 94da06025d4edd23cb7eda1deb2738070e08cd30 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Fri, 12 Jun 2026 15:08:24 +0900 Subject: feat(chat): multi-client live view — watch in-flight turns + user prompt on stream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - subscribe every open conversation on load + WS reconnect (resync), unsubscribe on tab close - derive a stream-based 'generating' state for watchers (Composer running indicator) - fold the user-message turn event so watchers render the prompt mid-turn (de-dup vs sender's optimistic echo) - re-pin wire@0.6.0 / transport-contract@0.8.0; re-mirror contracts; add user-message to the exhaustiveness guard --- src/core/chunks/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/core/chunks/index.ts') diff --git a/src/core/chunks/index.ts b/src/core/chunks/index.ts index 0718c0d..ecfee74 100644 --- a/src/core/chunks/index.ts +++ b/src/core/chunks/index.ts @@ -1,7 +1,13 @@ export type { RenderGroup, ToolBatchEntry } from "./groups"; export { groupRenderedChunks } from "./groups"; -export { appendUserMessage, applyHistory, foldEvent, initialState } from "./reducer"; -export { selectChunks, selectMessages } from "./selectors"; +export { + appendUserMessage, + applyHistory, + clearGenerating, + foldEvent, + initialState, +} from "./reducer"; +export { selectChunks, selectGenerating, selectMessages } from "./selectors"; export type { AccumulatingChunk, ProvisionalChunk, -- cgit v1.2.3