From 5faa06601a342f24c42fa58d381c0618f6b5cd96 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Fri, 14 Nov 2025 13:10:47 +0000 Subject: [PATCH] Fix scrolling buttopn and autoscrolling --- src/components/message-stream.tsx | 2 ++ src/styles/components.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/message-stream.tsx b/src/components/message-stream.tsx index d0b867f9..e3d3649b 100644 --- a/src/components/message-stream.tsx +++ b/src/components/message-stream.tsx @@ -380,7 +380,9 @@ export default function MessageStream(props: MessageStreamProps) { const toolSignature = createToolSignature(message, toolPart, originalIndex, messageInfo) const contentKey = createToolContentKey(toolPart, messageInfo) + tokenSegments.push(`tool:${toolKey}:${partVersion}`) const toolEntry = toolItemCache.get(toolKey) + if (toolEntry && toolEntry.signature === toolSignature) { if (toolEntry.contentKey !== contentKey) { const updatedItem: ToolDisplayItem = { diff --git a/src/styles/components.css b/src/styles/components.css index 434b5011..907ad8e0 100644 --- a/src/styles/components.css +++ b/src/styles/components.css @@ -696,7 +696,7 @@ button.button-primary:disabled { height: 2.75rem; border-radius: 9999px; border: 1px solid var(--border-base); - background-color: var(--surface-secondary); + background-color: transparent; color: var(--text-primary); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;