From d3ddbf715c6ecb86a38f6bde6f102c3bb1b60c7c Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:12:45 +0100 Subject: [PATCH] fix: error box stays after Continue Response recovers a failed reply (#34822) When a reply broke off mid-stream and Continue Response then finished it, the old error stayed under the answer, also after a reload. Continuing now clears the old error as soon as the new attempt starts, on screen and in the saved chat. A continuation that fails again shows and saves its own error, and nothing sent to the model changes. Fixes #34814 --- backend/open_webui/main.py | 1 + src/lib/components/chat/Chat.svelte | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 3705fbae85..c208ababa7 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1692,6 +1692,7 @@ async def chat_completion( response_meta['task_id'] = task_id message['meta'] = response_meta message['done'] = False + message['error'] = None if agent_model: message['modelName'] = agent_model['name'] diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index f18e3a6ca9..3c731be5b2 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -5590,6 +5590,7 @@ if (history.messages[message.id].done == true) { const responseMessage = history.messages[message.id]; responseMessage.done = false; + responseMessage.error = null; await tick(); const model = ($models ?? [])