]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
webui: fix tool selector toggle/counter, key tools by stable identity (#24065)
authorPascal <redacted>
Thu, 4 Jun 2026 11:09:49 +0000 (13:09 +0200)
committerGitHub <redacted>
Thu, 4 Jun 2026 11:09:49 +0000 (13:09 +0200)
commit4586479852e40f0ce8d4a38b8ec3b98c042d5a04
tree224155cdd63f1fb8fa0ffb82b9553e8b00791e2d
parent4d742877b2631bd9094bc7603bc59b65940563e2
webui: fix tool selector toggle/counter, key tools by stable identity (#24065)

* webui: fix tool selector toggle/counter, key tools by stable identity

Key the disabled set, counts and toggles by a stable per-tool key
instead of bare function name, deduped from one canonical list. Per-tool
checkboxes become presentational (single row handler, no nested button),
category checkboxes drop the tristate (n/total carries partial). One
getEnabledToolsForLLM keeps normalized MCP schemas and dedupes by name.

* ui: use SvelteSet and SvelteMap for local tool collections to satisfy svelte/prefer-svelte-reactivity
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/settings/SettingsChat/SettingsChatToolsTab.svelte
tools/ui/src/lib/constants/storage.ts
tools/ui/src/lib/hooks/use-tools-panel.svelte.ts
tools/ui/src/lib/stores/tools.svelte.ts
tools/ui/src/lib/types/tools.d.ts