mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
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/24796
Author: @Classic298
Created: 5/15/2026
Status: ❌ Closed
Base:
dev← Head:fix/title-model-dropdown-24745📝 Commits (1)
5f01c25fix: use current dropdown model for sidebar title regeneration (#24745)📊 Changes
3 files changed (+30 additions, -9 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+6 -1)📝
src/lib/components/layout/Sidebar/ChatItem.svelte(+19 -8)📝
src/lib/stores/index.ts(+5 -0)📄 Description
When the title task model is "Current Model", regenerating a title from the sidebar (Rename -> sparkles) used a model derived from the chat's message history instead of the model currently selected in the dropdown.
generateTitleHandler reused a cached
chat, so repeated regenerations resolved the model from a stale history.currentId (the model from an old revision). Even with fresh data it never consulted the live dropdown selection, which the sidebar had no access to.Add a selectedChatModels store mirrored from Chat.svelte; the handler now always refetches and, for the open chat, prefers the live selection. The history walk remains the fallback for chats that aren't open.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.