mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[PR #18560] [CLOSED] fix: correct model property paths to prevent tool deselection bug #47878
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/18560
Author: @AnthonyChen05
Created: 10/23/2025
Status: ❌ Closed
Base:
main← Head:claude/fix-tool-deselection-bug-011CUQaeEP5cSj3orroEK3vN📝 Commits (1)
49ebae9fix: correct model property paths to prevent tool deselection bug📊 Changes
1 file changed (+15 additions, -15 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+15 -15)📄 Description
Fixed incorrect property paths in Chat.svelte that were causing tools to deselect when navigating between chats. The model object structure uses
model.metaandmodel.paramsdirectly, notmodel.info.metaormodel.info.params.Changes:
This ensures that when a model has default tools configured, they are properly restored when returning to a chat using that model.
🤖 Generated with Claude Code
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
Added
Changed
Updated property access paths from model.info.params to model.params
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
This fix requires manual testing to verify:
Navigate to a chat with a model that has default tools configured
Navigate away from the chat
Return to the chat and verify tools are properly restored
Verify default features (image generation, web search, code interpreter) are properly restored
Verify vision and web search capabilities are correctly detected
AI Assistance Notice
⚠️ Important: This PR was developed with assistance from Claude Code (AI agent). Human review and manual testing are REQUIRED before merging, as per the contribution guidelines.
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.