diff --git a/frontend/src/components/message/ToolCallPart.tsx b/frontend/src/components/message/ToolCallPart.tsx index 838ca41a..8fec1d75 100644 --- a/frontend/src/components/message/ToolCallPart.tsx +++ b/frontend/src/components/message/ToolCallPart.tsx @@ -67,7 +67,7 @@ export function ToolCallPart({ part, onFileClick, onChildSessionClick }: ToolCal useEffect(() => { if (part.tool === 'bash' && expanded && outputRef.current) { - outputRef.current.scrollIntoView({ behavior: 'smooth', block: 'start' }) + outputRef.current.scrollIntoView({ behavior: 'smooth', block: 'nearest' }) } }, [expanded, part.tool]) @@ -132,7 +132,7 @@ export function ToolCallPart({ part, onFileClick, onChildSessionClick }: ToolCal const command = part.state.input.command as string const output = part.state.status === 'completed' ? part.state.output : '' return ( -
+
✓ $ @@ -168,7 +168,7 @@ export function ToolCallPart({ part, onFileClick, onChildSessionClick }: ToolCal } return ( -
+
)} -
+
Output:
 part.state.status === 'completed' && navigator.clipboard.writeText(part.state.output)}