mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 03:03:27 -06:00
[PR #19892] [CLOSED] fix: MultiResponseMessages crashes when navigating history after model removal #129035
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19892
Author: @broskees
Created: 12/11/2025
Status: ❌ Closed
Base:
dev← Head:bugfix/ui-free-multi-model-chats📝 Commits (1)
651a06cfix type error when removing a model, editing a chat, in tabbed ui, in a multimodel chat📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/MultiResponseMessages.svelte(+5 -1)📄 Description
Fixes #18599: a TypeError crash in MultiResponseMessages component when navigating message history after removing a model from the selector. The component's
initHandler()only ran on mount, never re-running when themessageIdprop changed during navigation. This causedgroupedMessageIds[selectedModelIdx]to be undefined when the current model selection didn't match the historical message's model count.Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
Fixes a TypeError crash in MultiResponseMessages component when navigating message history after removing a model from the selector. The component's
initHandler()only ran on mount, never re-running when themessageIdprop changed during navigation. This causedgroupedMessageIds[selectedModelIdx]to be undefined when the current model selection didn't match the historical message's model count.Added
groupedMessageIdswhenmessageIdchangesFixed
Screenshots or Videos
Before:

After:

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.