fix: Continue Response continues the reply it was clicked under (#32456)

This commit is contained in:
G30 2026-10-15 05:12:00 -04:00 • committed by GitHub
parent 9245e31ccb
commit 3c82fda4e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -4469,12 +4469,12 @@
}
};
const continueResponse = async () => {
const continueResponse = async (message) => {
console.log('continueResponse');
const _chatId = JSON.parse(JSON.stringify($chatId));
if (history.currentId && history.messages[history.currentId].done == true) {
const responseMessage = history.messages[history.currentId];
if (history.messages[message.id].done == true) {
const responseMessage = history.messages[message.id];
responseMessage.done = false;
await tick();

View file

@ -1383,7 +1383,7 @@
? 'visible'
: 'hover-reveal'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
on:click={() => {
continueResponse();
continueResponse(message);
}}
>
<svg