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:
Classic298 authored and GitHub committed 2026-11-23 19:12:45 +04:00
1 parent 7d1f815625
commit d3ddbf715c
2 files changed
+2

No files matched your search

+1
View File
@@ -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']
+1
View File
@@ -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 ?? [])