Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
refactor: remove redundant workLogCount stick-to-bottom effect
Julius Marminge5c0961431909
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 23a6c4f18..8dd15be5b 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 messagesconst 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;