]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: added single line reasoning preview (#23601)
authorMagicExists <redacted>
Thu, 4 Jun 2026 14:09:43 +0000 (21:09 +0700)
committerGitHub <redacted>
Thu, 4 Jun 2026 14:09:43 +0000 (16:09 +0200)
commit526977068f919da0386e2c5463645643be142d1d
tree211c30f0f9cb9ed49e797a28aade9dae6292a63c
parent0dbfa66a1fb99e5270b8b6652f553c1bff59123f
ui: added single line reasoning preview (#23601)

* webui: added single line reasoning preview.

* patch: reduce width slightly for the previewing section

* refactor: move formatter constants to the right file

* feat: reimplement reasoning preview with throttled dynamic per-line rendering

* chore: fix spacing

Co-authored-by: Aleksander Grygier <redacted>
* chore: refactor to requested changes

* refactor: grouped by capture pattern instead of block-level + inline

* ui: fax interrupt state only trigger for 1st reasoning message

* chore: make reasoning preview respects showThoughtInProgress setting

* chore; newline at EOF

Co-authored-by: Aleksander Grygier <redacted>
* fix: thread rawContent so collapsible content can handle compute preview

* patch: showThoughtInProgress accidentally blocks rawContent being passed

* chore: fix lint

* chore: change smoke test

---------

Co-authored-by: Aleksander Grygier <redacted>
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageAgenticContent.svelte
tools/ui/src/lib/components/app/content/CollapsibleContentBlock.svelte
tools/ui/src/lib/constants/formatters.ts
tools/ui/src/lib/hooks/use-throttle.svelte.ts [new file with mode: 0644]
tools/ui/src/lib/utils/agentic.ts
tools/ui/src/lib/utils/formatters.ts
tools/ui/src/lib/utils/index.ts