mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-30 06:00:43 -05:00
[PR #18312] [CLOSED] fix: stop default prompt suggestions from refreshing on model picker hover #24750
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18312
Author: @silentoplayz
Created: 10/14/2025
Status: ❌ Closed
Base:
dev← Head:model-selector-hover-refresh📝 Commits (1)
75379a9fix: stop prompt suggestions from refreshing on model picker hover📊 Changes
1 file changed (+0 additions, -8 deletions)
View changed files
📝
src/lib/components/chat/ModelSelector/Selector.svelte(+0 -8)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
Removed
on:mouseenterevent handler from the model selector trigger component (src/lib/components/chat/ModelSelector/Selector.svelte). This handler was responsible for re-fetching the model list on hover, which caused the undesirable refresh of prompt suggestions.Fixed
Additional Information
getModels) being triggered by theon:mouseenterevent. By removing this event handler, the API is no longer called on hover, and the prompt suggestions only update when a new model is actually selected, as intended.Screenshots or Videos
Before (Hovering the mouse pointer over the model picker, moving the mouse a little, and moving the mouse pointer back would result in the

modelsendpoint being called each time):After (Now, only a single call is made to the Ollama

versionendpoint when the model picker is opened and no network activity is created from the previous reproduction steps to trigger requests to themodelsendpoint):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.