diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 01:04:01 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 01:04:01 +0900 |
| commit | e90faef7973bf513bf263899cc5cee2652e7a481 (patch) | |
| tree | 933c945e6b1dac8d5e9cdef16c7b480ed7777a50 /src/features/tabs/tabs.ts | |
| parent | a7d9ca138a0823273dd0bc805de2406a9aac3294 (diff) | |
| download | dispatch-web-e90faef7973bf513bf263899cc5cee2652e7a481.tar.gz dispatch-web-e90faef7973bf513bf263899cc5cee2652e7a481.zip | |
fix(chat): keep thinking <details> open while streaming
ChatView keyed the transcript each-block by object identity, but core/chunks
returns new RenderedChunk objects per delta, so Svelte recreated each
<article>/<details> every frame — an opened Thinking element snapped shut on
the next token. Key by stable identity instead (c${seq} for committed, p${i}
for append-only provisional) so streaming reuses the DOM. Adds a regression
test that the <details> stays open across a streaming update.
Verified: svelte-check 0/0, vitest 222, biome clean, build ok.
Diffstat (limited to 'src/features/tabs/tabs.ts')
0 files changed, 0 insertions, 0 deletions
