]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: UI/chat form follow ups (#26743)
authorPascal <redacted>
Mon, 10 Aug 2026 11:32:51 +0000 (13:32 +0200)
committerGitHub <redacted>
Mon, 10 Aug 2026 11:32:51 +0000 (13:32 +0200)
commit4dee52f82dc455a035e900fed6a40cb45cd7a454
tree0610f40e82c2a5223d2a68eee6275cbb156315f5
parente5275f6f77e191c9fa52b0819b4e7edc902ed24e
ui: UI/chat form follow ups (#26743)

* ui: split the markdown rendering setting per surface

User content and thinking get their own toggle again, so turning off
markdown for a message leaves reasoning blocks formatted. Both default
to markdown. A stored renderContentAsRawText unfolds onto the user key
and is dropped from the config.

File mentions render as badges in the raw text path too, through a
narrow pass over [name](file://path) that leaves everything else
untouched.

* ui: let the rich chat input scroll past its max height

The contenteditable renderer caps its height with max-height but had no
overflow rule, so a long buffer overflowed into the input area wrapper
and got clipped by its overflow-hidden, leaving no way to reach the
bottom of the message. The textarea renderer scrolls natively and was
never affected.

* ui: apply the new lint and format config

* ui: move the render keys unfolding into the migration service

Address review from @allozaur: the settings store no longer rewrites
persisted config on load, the raw text toggle now unfolds onto the
per-surface render keys in migration.service.ts, next to the other
config migrations. The mention scanner flag and the directory path
suffix become named constants.
18 files changed:
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormContenteditable.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageSystem/ChatMessageSystem.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessage/ChatMessageUser/ChatMessageUserBubble.svelte
tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageReasoningBlock.svelte
tools/ui/src/lib/components/app/content/MentionBadge.svelte [new file with mode: 0644]
tools/ui/src/lib/components/app/content/MentionText.svelte [new file with mode: 0644]
tools/ui/src/lib/components/app/content/index.ts
tools/ui/src/lib/constants/mention-badge.ts
tools/ui/src/lib/constants/path-display.ts
tools/ui/src/lib/constants/settings-keys.ts
tools/ui/src/lib/constants/settings-registry.ts
tools/ui/src/lib/services/migration.service.ts
tools/ui/src/lib/stores/settings.svelte.ts
tools/ui/src/lib/utils/index.ts
tools/ui/src/lib/utils/mention-badge.ts
tools/ui/tests/client/settings-raw-text-migration.svelte.test.ts [deleted file]
tools/ui/tests/client/settings-render-keys-migration.svelte.test.ts [new file with mode: 0644]
tools/ui/tests/unit/mention-segments.test.ts [new file with mode: 0644]