diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 02:41:37 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 02:41:37 +0900 |
| commit | 1e936915b2c3725ca0a6a6e2fd0116ab551a71b6 (patch) | |
| tree | a5b1134786c90a145daea8b8438525565d1439fc /src/core/chunks/index.ts | |
| parent | 6a890e9be8ea4057e5d512f50e37da11d0a8aedf (diff) | |
| download | dispatch-web-1e936915b2c3725ca0a6a6e2fd0116ab551a71b6.tar.gz dispatch-web-1e936915b2c3725ca0a6a6e2fd0116ab551a71b6.zip | |
fix: optimistic user message echo + tabs persistence
Bug 1 (sent message didn't appear until turn end): the transcript only folded
assistant AgentEvents, so the user's own message showed only after turn-sealed
resync. Add core/chunks appendUserMessage() (provisional user chunk, superseded
on history sync) and call it in chat send() — the message now renders instantly.
Bug 2 (tabs didn't persist on refresh): the app passed { storage: undefined }
to createLocalStore, which the adapter treats as a no-op store, so nothing was
saved. Default to globalThis.localStorage. Regression test exercises the
non-injected path.
Also updated app store tests for the echo (assistant-vs-user chunk filtering).
Verified: svelte-check 0/0, vitest 288 (stable x2), biome clean, build ok.
Diffstat (limited to 'src/core/chunks/index.ts')
| -rw-r--r-- | src/core/chunks/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/chunks/index.ts b/src/core/chunks/index.ts index 36ba7f4..67739bc 100644 --- a/src/core/chunks/index.ts +++ b/src/core/chunks/index.ts @@ -1,4 +1,4 @@ -export { applyHistory, foldEvent, initialState } from "./reducer"; +export { appendUserMessage, applyHistory, foldEvent, initialState } from "./reducer"; export { selectChunks, selectMessages } from "./selectors"; export type { AccumulatingChunk, |
