fix: stopping a reply leaves the chat stuck with the Stop button showing (#32184)

Stopping a reply did stop it, but the page kept showing it as still generating: the Stop button stayed and the next message was never answered. The same happened when sending a queued message right away with Send now. After the reply was marked finished, the page put back an older copy of it that was still marked as generating. Stopped replies now show as finished again, the Send button returns and the next message gets an answer.

Fixes #32081
This commit is contained in:
Classic298 2026-10-10 17:56:19 +02:00 • committed by GitHub
parent 958ad36734
commit d12bf062b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1478,6 +1478,7 @@
for (const messageId of history.messages[message.parentId].childrenIds) {
history.messages[messageId].done = true;
}
message.done = true;
await processNextInQueue($chatId);
} else {
message.done = true;
@ -4228,10 +4229,6 @@
}
}
if (responseMessage) {
history.messages[responseMessage.id] = responseMessage;
}
if (shouldAutoScrollResponse()) {
scrollToBottom();
}