Files
open-webui/src/lib/components/chat
Classic298 4eb0394511 fix: merged response receiving empty model responses after reload (#27673)
Clicking "Merged Response" in a multi-model chat often made the merging model answer with "It appears that the responses provided from the other models were empty".

The merge handler collected each model's answer via `history.messages[id].content`. Assistant messages are persisted by the backend with `output` only (`upsert_message_to_chat_by_id_and_message_id` writes `done`/`role`/`output`, never `content`), so `content` is only populated in the browser session that generated the responses, where the streaming handler mirrors it. Once the chat is reloaded from the database, every assistant message has `content: ''` and the merge request is sent with a list of empty strings, which is exactly what the merging model then reports. That is why the failure looks random: merging works right after generating, and fails after a refresh or when reopening the chat.

Read the responses through `getOutputText(message.output) || message.content`, the same fallback already used by every other read site (`ResponseMessage`, `Overview/Node`, `SearchModal`, `ChatItem`, `ChatMenu`, `Navbar/Menu`).

Fixes #26962
2026-08-10 23:31:21 -06:00
..
2026-02-24 16:12:02 -06:00
2026-08-10 18:52:18 -06:00
2026-08-10 18:52:34 -06:00
2026-08-10 18:52:18 -06:00
2026-08-10 18:52:58 -06:00
2026-07-26 22:16:31 -04:00
2026-07-27 01:19:34 -04:00
2026-07-27 19:39:36 -04:00
2026-08-10 18:52:18 -06:00
2026-08-10 18:52:18 -06:00
2026-08-10 18:52:18 -06:00
2026-07-24 02:14:56 -04:00
2026-08-05 07:04:30 -05:00
2026-08-10 18:52:18 -06:00
2026-08-05 07:57:55 -05:00
2026-06-28 22:35:59 -05:00
2026-08-10 19:16:21 -06:00
2026-07-27 19:39:36 -04:00
2026-07-15 04:52:06 -04:00
2026-07-15 04:25:51 -04:00
2026-07-27 19:24:03 -04:00
2024-10-23 20:18:51 -07:00
2026-07-14 01:39:40 -04:00
2026-08-10 18:52:18 -06:00
2026-08-08 15:47:10 -06:00