Timothy Jaeryang Baek há 4 meses atrás
pai
commit
49b36937ad
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      src/lib/components/chat/Chat.svelte

+ 9 - 0
src/lib/components/chat/Chat.svelte

@@ -1569,6 +1569,15 @@
 
 			if (res) {
 				taskId = null;
+
+				const responseMessage = history.messages[history.currentId];
+				responseMessage.done = true;
+
+				history.messages[history.currentId] = responseMessage;
+
+				if (autoScroll) {
+					scrollToBottom();
+				}
 			}
 		}
 	};