summaryrefslogtreecommitdiffhomepage
path: root/src/features/conversation-cache/cache.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-07 02:41:37 +0900
committerAdam Malczewski <[email protected]>2026-06-07 02:41:37 +0900
commit1e936915b2c3725ca0a6a6e2fd0116ab551a71b6 (patch)
treea5b1134786c90a145daea8b8438525565d1439fc /src/features/conversation-cache/cache.ts
parent6a890e9be8ea4057e5d512f50e37da11d0a8aedf (diff)
downloaddispatch-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/features/conversation-cache/cache.ts')
0 files changed, 0 insertions, 0 deletions