]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: Add a "Default" option for the reasoning selector (#25846)
authorPascal <redacted>
Wed, 22 Jul 2026 21:09:49 +0000 (23:09 +0200)
committerGitHub <redacted>
Wed, 22 Jul 2026 21:09:49 +0000 (23:09 +0200)
commitcf512566dc89d7a2bdefd43f6d4b85a1c18e93a7
treede5397bfcf6b7bf352189fc509c44a1863827422
parent1a064ab0921238c1daa397d6f4a900ef33884de2
ui: Add a "Default" option for the reasoning selector (#25846)

* ui: add Default reasoning option that defers to the server

The webui always injected enable_thinking, overriding the chat template
default and the --reasoning flag, breaking models that reason
unconditionally (e.g. Gemma 4 E4B) on a fresh client.

Default sends nothing so the server decides, Off and effort levels
force the value as before. All choices are remembered.

Also remove the boolean thinking API from the conversations store and
drop ChatFormReasoningEffortSubmenu.svelte (dead code).

* ui: close the whole menu tree on reasoning level selection

The reasoning levels were raw buttons inside the SubContent, so
selecting one only closed the submenu via manual state while the root
dropdown stayed open. DropdownMenu.Item closes the full tree on select
like the sibling entries and brings native keyboard navigation.

* ui: prevent the add menu tooltip from flashing when the dropdown closes
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddReasoningSubmenu.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddSheet.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormReasoningEffortSubmenu.svelte [deleted file]
tools/ui/src/lib/constants/reasoning-effort.ts
tools/ui/src/lib/enums/reasoning-effort.enums.ts
tools/ui/src/lib/hooks/use-reasoning-menu.svelte.ts
tools/ui/src/lib/services/chat.service.ts
tools/ui/src/lib/stores/chat.svelte.ts
tools/ui/src/lib/stores/conversations.svelte.ts
tools/ui/src/lib/types/reasoning.ts