From 3949ab736d6abc4cdbb0e5ebf3d54c5cc8fc4cca Mon Sep 17 00:00:00 2001 From: Chandrapal Badshah Date: Wed, 10 Sep 2025 20:04:24 +0530 Subject: [PATCH] fix(lighthouse): allow scrolling during AI response streaming (#8669) Co-authored-by: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com> --- ui/components/lighthouse/chat.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ui/components/lighthouse/chat.tsx b/ui/components/lighthouse/chat.tsx index 1aced584c6..07d494a524 100644 --- a/ui/components/lighthouse/chat.tsx +++ b/ui/components/lighthouse/chat.tsx @@ -146,16 +146,6 @@ export const Chat = ({ hasConfig, isActive }: ChatProps) => { return () => document.removeEventListener("keydown", handleKeyDown); }, [messageValue, onFormSubmit]); - useEffect(() => { - if (messagesContainerRef.current && latestUserMsgRef.current) { - const container = messagesContainerRef.current; - const userMsg = latestUserMsgRef.current; - const containerPadding = 16; // p-4 in Tailwind = 16px - container.scrollTop = - userMsg.offsetTop - container.offsetTop - containerPadding; - } - }, [messages]); - const suggestedActions: SuggestedAction[] = [ { title: "Are there any exposed S3",