summaryrefslogtreecommitdiffhomepage
path: root/src/app/store.test.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-22 18:08:05 +0900
committerAdam Malczewski <[email protected]>2026-06-22 18:08:05 +0900
commitdfe1711d418cd13843d0f54676443665730eced3 (patch)
treeadb8fb340824a54809a6ee124081b5db59112299 /src/app/store.test.ts
parenta112715908ac9dba05148ca239531b5a1e878e97 (diff)
downloaddispatch-web-dfe1711d418cd13843d0f54676443665730eced3.tar.gz
dispatch-web-dfe1711d418cd13843d0f54676443665730eced3.zip
fix: duplicate user message on first send in a new tab
When a draft is promoted to a real conversation, send() appends the user message as a provisional chunk (optimistic echo). But load() also fires syncTail, which fetches the CR-6 persisted user message as a committed chunk — showing the message twice until turn seal. Fix: applyHistory now removes provisional chunks that duplicate the last committed chunk (matching role + text content) when new committed chunks arrive during generation. The optimistic echo is dropped once the authoritative committed version arrives. 684 tests green.
Diffstat (limited to 'src/app/store.test.ts')
0 files changed, 0 insertions, 0 deletions