Files
open-webui/src/lib/components
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-08-10 22:57:21 -06:00
2026-07-27 19:24:03 -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-08-10 18:52:18 -06:00
2026-08-10 19:42:05 -06:00
2026-07-14 04:15:20 -04:00
2026-08-08 15:47:10 -06:00
2026-07-27 19:39:36 -04:00
2026-07-26 19:34:41 -04:00
2026-07-27 19:24:03 -04:00
2026-07-15 04:25:51 -04:00
2026-08-10 18:52:18 -06:00
2026-08-10 18:52:18 -06:00