mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 22:37:38 -05:00
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
This commit is contained in:
1 parent
7d1f815625
commit
d3ddbf715c
2 files changed
+2
No files matched your search
@@ -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']
|
||||
|
||||
|
||||
@@ -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 ?? [])
|
||||
|
||||
Reference in new issue
Block a user