From 9f95730357c4950f394fcd80c34a86467433d743 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Tue, 4 Nov 2025 23:37:40 +0000 Subject: [PATCH] Prune redundant tool scroll effect --- src/components/tool-call.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/components/tool-call.tsx b/src/components/tool-call.tsx index 674ed493..413e9e3f 100644 --- a/src/components/tool-call.tsx +++ b/src/components/tool-call.tsx @@ -178,21 +178,6 @@ export default function ToolCall(props: ToolCallProps) { setInitializedId(id) }) - // Restore scroll position when content updates - createEffect(() => { - const id = toolCallId() - const element = markdownContainerRef - if (!id || !element) return - - const tool = toolName() - if (tool === "todowrite" || tool === "task") return - - const content = getMarkdownContent(tool, props.toolCall?.state || {}) - if (!content) return - - restoreScrollState(id, element) - }) - // Cleanup cache entry when component unmounts or toolCallId changes createEffect(() => { const id = toolCallId()