From a46f6d20c3ac9880cfd83ee788ea07fc7e4bc8fb Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 14 Apr 2026 16:41:57 -0300 Subject: [PATCH] fix: ensure chat scrolls to bottom during streaming renders --- ui/suite/partials/chat.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/suite/partials/chat.html b/ui/suite/partials/chat.html index e5b5599..94ea736 100644 --- a/ui/suite/partials/chat.html +++ b/ui/suite/partials/chat.html @@ -994,6 +994,7 @@ function addMessage(sender, content, msgId) { if (isTagBalanced(cleanContent) || (Date.now() - lastRenderTime > 2000)) { msgContent.innerHTML = renderMentionInMessage(cleanContent); lastRenderTime = Date.now(); + if (!isUserScrolling) scrollToBottom(true); } } else { // Standard markdown/text rendering @@ -1002,6 +1003,7 @@ function addMessage(sender, content, msgId) { : escapeHtml(cleanContent); parsed = renderMentionInMessage(parsed); msgContent.innerHTML = parsed; + if (!isUserScrolling) scrollToBottom(true); } } @@ -1019,6 +1021,7 @@ function addMessage(sender, content, msgId) { el.querySelector(".message-content").innerHTML = parsed; el.removeAttribute("id"); setupMentionClickHandlers(el); + if (!isUserScrolling) scrollToBottom(true); } streamingMessageId = null; currentStreamingContent = "";