A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: remove auto-scroll from chat (#4561)
Myles Scolnick237e7466fbaf
diff --git a/frontend/src/components/chat/chat-panel.tsx b/frontend/src/components/chat/chat-panel.tsxindex 1014daee7d..bbcb921a11 100644--- a/frontend/src/components/chat/chat-panel.tsx+++ b/frontend/src/components/chat/chat-panel.tsx@@ -22,7 +22,6 @@ import {import {useState,useRef,- useEffect,type SetStateAction,type Dispatch,memo,@@ -293,24 +292,6 @@ const ChatPanelBody = () => {Logger.debug("Received HTTP response from server:", response);},});- const lastMessageText = messages.at(-1)?.content;- useEffect(() => {- if (isLoading) {- const BUFFER = 150;- const container = messagesEndRef.current?.parentElement;- if (!container) {- return;- }-- const isNearBottom =- container.scrollHeight - container.scrollTop - container.clientHeight <- BUFFER;-- if (isNearBottom) {- messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });- }- }- }, [messages, isLoading, lastMessageText]);const createNewThread = (initialMessage: string) => {const newChat: Chat = {