mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22292] [CLOSED] fix: reset tool selection when switching models #42223
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22292
Author: @zspirit
Created: 3/6/2026
Status: ❌ Closed
Base:
main← Head:fix/tool-selection-on-model-switch📝 Commits (1)
28ebbcbfix tool selection not reset on model switch📊 Changes
1 file changed (+4 additions, -6 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+4 -6)📄 Description
Summary
Fixes #14157
When switching models in chat, previously selected tools were not properly cleared. Two changes in
src/lib/components/chat/Chat.svelte:toolIds— removed unnecessarynew Setwrapping and directly filter by available toolsselectedToolIdsentirely instead of keeping previous tools (minusdirect_server:ones)Test plan
$settings.tools) still work as fallback🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.