diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 17:14:40 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 17:14:40 +0900 |
| commit | dcf5a2993c9cbeb266f2629cf33fbc43f52c7ca8 (patch) | |
| tree | f01d91c2775ace8d7fdb01e40a1c8604f606b0ae /src/app/App.svelte | |
| parent | d855080485aac8a316b9c78ddfea25465cde6c7b (diff) | |
| download | dispatch-web-dcf5a2993c9cbeb266f2629cf33fbc43f52c7ca8.tar.gz dispatch-web-dcf5a2993c9cbeb266f2629cf33fbc43f52c7ca8.zip | |
feat(chat): restyle thinking — visible bubble, collapse, title swap, persisted open
Thinking renders inside a visible rounded-card bubble (like tool calls),
capped to the same max-w-5xl column as assistant text. Uses a DaisyUI
checkbox collapse (no arrow/plus icon) with smooth animation. Title reads
"Thinking" + loading-dots while the model is actively generating, then
flips to "Thoughts" with no dots once done. Open/closed state persists
across the generating→completed→sealed transition via stable ordinal keys
(per-conversation isolation via {#key} in App). Added optional streaming
flag to RenderedChunk (pure selector, only on the accumulating chunk).
Diffstat (limited to 'src/app/App.svelte')
| -rw-r--r-- | src/app/App.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/App.svelte b/src/app/App.svelte index cc9866e..61b4cb9 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -61,7 +61,9 @@ </div> <div class="flex-1 overflow-y-auto"> - <ChatView chunks={store.activeChat.chunks} /> + {#key store.activeConversationId} + <ChatView chunks={store.activeChat.chunks} /> + {/key} </div> <Composer onSend={handleSend} /> |
