diff options
| author | Adam Malczewski <[email protected]> | 2026-06-22 18:08:05 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-22 18:08:05 +0900 |
| commit | c95cc77b658edd072785d3ac93856de3ab9ad2ec (patch) | |
| tree | 1a8c8a84c0c233ebe0aea0d9309ab3a84c4856be /src/features/cache-warming/logic | |
| parent | 2a7708bd492a5a78794c76ee43355cabe786943e (diff) | |
| download | dispatch-web-dev.tar.gz dispatch-web-dev.zip | |
fix: duplicate user message on first send in a new tabdev
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/features/cache-warming/logic')
0 files changed, 0 insertions, 0 deletions
