From 16fdaff8b38ae844eade3aae8e112bf8bd0f593e Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sat, 5 Oct 2024 06:03:33 -0400 Subject: [PATCH] Fixes --- webview-ui/src/components/chat/ChatView.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 3403a10..a7dbbe3 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -258,7 +258,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie didJustSendMessageRef.current = true setTimeout(() => { didJustSendMessageRef.current = false - }, 1_000) + }, 400) } }, [messages.length, claudeAsk] @@ -496,7 +496,12 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie ) const handleRowHeightChange = useCallback(() => { - if (isAtBottomRef.current || didClickScrollToBottom || !didScrollUpRef.current) { + if ( + isAtBottomRef.current || + didClickScrollToBottom || + !didScrollUpRef.current || + didJustSendMessageRef.current + ) { scrollToBottomSmooth() } }, [scrollToBottomSmooth, didClickScrollToBottom])