diff --git a/ui/suite/chat/chat.html b/ui/suite/chat/chat.html
index 537bd76..7d2e38d 100644
--- a/ui/suite/chat/chat.html
+++ b/ui/suite/chat/chat.html
@@ -764,7 +764,6 @@ function updateStreaming(content) {
}
}
}
- }
function finalizeStreaming() {
var el = document.getElementById(streamingMessageId);
@@ -786,15 +785,12 @@ function finalizeStreaming() {
}
el.removeAttribute("id");
setupMentionClickHandlers(el);
- }
+ }
streamingMessageId = null;
currentStreamingContent = "";
}
- streamingMessageId = null;
- currentStreamingContent = "";
- }
- function processMessage(data) {
+ function processMessage(data) {
// Handle thinking indicator from backend
if (data.type === "thinking") {
showThinkingIndicator();
diff --git a/ui/suite/partials/chat.html b/ui/suite/partials/chat.html
index eb4402e..d1051b3 100644
--- a/ui/suite/partials/chat.html
+++ b/ui/suite/partials/chat.html
@@ -968,7 +968,6 @@ function updateStreaming(content) {
}
}
}
- }
function finalizeStreaming() {
var el = document.getElementById(streamingMessageId);