From 338c3f7889a5ffa2124c2dad709a5b8d7e5b7272 Mon Sep 17 00:00:00 2001 From: shtse8 Date: Sun, 6 Apr 2025 00:08:29 +0100 Subject: [PATCH 1/2] fix: Prevent unnecessary autoscroll when buttons appear (#1280) --- webview-ui/src/components/chat/ChatView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 85ce7cd1cbc..572082031fa 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -421,7 +421,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setTextAreaDisabled(true) setClineAsk(undefined) setEnableButtons(false) - disableAutoScrollRef.current = false + // disableAutoScrollRef.current = false }, [clineAsk, startNewTask], ) @@ -468,7 +468,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setTextAreaDisabled(true) setClineAsk(undefined) setEnableButtons(false) - disableAutoScrollRef.current = false + // disableAutoScrollRef.current = false }, [clineAsk, startNewTask, isStreaming], ) From c1d191ec772a726a49863ee5f2943fccecd9f122 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 6 Apr 2025 22:12:49 -0400 Subject: [PATCH 2/2] Remove commented out code --- webview-ui/src/components/chat/ChatView.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 572082031fa..b755336a6cf 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -421,7 +421,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setTextAreaDisabled(true) setClineAsk(undefined) setEnableButtons(false) - // disableAutoScrollRef.current = false }, [clineAsk, startNewTask], ) @@ -468,7 +467,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setTextAreaDisabled(true) setClineAsk(undefined) setEnableButtons(false) - // disableAutoScrollRef.current = false }, [clineAsk, startNewTask, isStreaming], )