]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: Add Thinking mode toggle with reasoning effort levels + improvements for Chat...
authorAleksander Grygier <redacted>
Tue, 2 Jun 2026 08:23:19 +0000 (10:23 +0200)
committerGitHub <redacted>
Tue, 2 Jun 2026 08:23:19 +0000 (10:23 +0200)
commitf8e67fc58335a1495ca1b3cd6827cbd44503800e
treeadb8fb2ff44584f27b7cf69685233e52ee87e01a
parent236531595584fdb5f63f09bf4306cf982b757e6e
ui: Add Thinking mode toggle with reasoning effort levels + improvements for Chat Form Add Action UI (#23434)

* feat: Add "Thinking" toggle and status icon + redesign Chat Form Actions Add panel

* test: Update test reference

* fix: Icon

* fix: E2E test command

* fix: wait for greeting h1 to be visible in e2e test

* fix: remove duplicate PDF option in attachment dropdown

* fix: use label-based group toggle to avoid stale references

* refactor: inline MCP server and tool toggles in mobile sheet

* fix: serve correct build directory in e2e playwright config

* feat: add reasoning effort levels selector in model dropdown

* feat: Reasoning effort

* refactor: Make server origin configurable via environment variable

* feat: Add chat template thinking detector utility

* feat: Add thinking support detection to models store

* refactor: Update model selector components with thinking detection and message-specific indicators

* feat: Update chat form components for model selection and thinking support

* feat: Improve Reasoning controls UI

* refactor: Apply suggestions from code review

Co-authored-by: Aleksander Grygier <redacted>
* fix: Model tags

* refactor: Cleanup

* refactor: Remove unneeded components

* refactor: Cleanup
40 files changed:
common/arg.cpp
tools/ui/.env.example
tools/ui/.prettierignore
tools/ui/README.md
tools/ui/playwright.config.ts
tools/ui/src/lib/components/app/chat/ChatForm/ChatForm.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddSheet.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddToolsSubmenu.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormReasoningEffortSubmenu.svelte [new file with mode: 0644]
tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormReasoningToggle.svelte [new file with mode: 0644]
tools/ui/src/lib/components/app/chat/index.ts
tools/ui/src/lib/components/app/models/ModelId.svelte
tools/ui/src/lib/components/app/models/ModelsSelectorDropdown.svelte
tools/ui/src/lib/components/app/models/ModelsSelectorSheet.svelte
tools/ui/src/lib/components/app/models/index.ts
tools/ui/src/lib/constants/attachment-menu.ts
tools/ui/src/lib/constants/index.ts
tools/ui/src/lib/constants/reasoning-effort-tokens.ts [new file with mode: 0644]
tools/ui/src/lib/constants/reasoning-effort.ts [new file with mode: 0644]
tools/ui/src/lib/constants/settings-keys.ts
tools/ui/src/lib/constants/settings-registry.ts
tools/ui/src/lib/constants/storage.ts
tools/ui/src/lib/enums/index.ts
tools/ui/src/lib/enums/reasoning-effort.enums.ts [new file with mode: 0644]
tools/ui/src/lib/hooks/use-tools-panel.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/stores/models.svelte.ts
tools/ui/src/lib/types/database.d.ts
tools/ui/src/lib/types/index.ts
tools/ui/src/lib/types/reasoning.ts [new file with mode: 0644]
tools/ui/src/lib/types/settings.d.ts
tools/ui/src/lib/utils/chat-template-thinking-detector.ts [new file with mode: 0644]
tools/ui/tests/e2e/demo.test.ts
tools/ui/tests/stories/ChatScreenForm.a11y.stories.svelte
tools/ui/vite.config.ts