diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 23a6c4f18666b42d0f121f7eb606231b2e6cfbee..8dd15be5b1c67e642989b9019f157636838d5d10 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1284,7 +1284,6 @@ export default function ChatView({ threadId }: ChatViewProps) { // Auto-scroll on new messages const messageCount = timelineMessages.length; - const workLogCount = workLogEntries.length; const scrollMessagesToBottom = useCallback((behavior: ScrollBehavior = "auto") => { const scrollContainer = messagesScrollRef.current; if (!scrollContainer) return; @@ -1354,11 +1353,6 @@ export default function ChatView({ threadId }: ChatViewProps) { if (!shouldAutoScrollRef.current) return; scheduleStickToBottom(); }, [messageCount, scheduleStickToBottom]); - useEffect(() => { - if (phase !== "running") return; - if (!shouldAutoScrollRef.current) return; - scheduleStickToBottom(); - }, [phase, scheduleStickToBottom, workLogCount]); useEffect(() => { if (phase !== "running") return; if (!shouldAutoScrollRef.current) return;