diff --git a/packages/ui/src/components/shell-rolling-results.tsx b/packages/ui/src/components/shell-rolling-results.tsx index 744d043592..6a3b7b02cc 100644 --- a/packages/ui/src/components/shell-rolling-results.tsx +++ b/packages/ui/src/components/shell-rolling-results.tsx @@ -276,6 +276,7 @@ export function ShellRollingResults(props: { part: ToolPart; animate?: boolean } > { - if (frame !== undefined) cancelAnimationFrame(frame) + if (frame !== undefined) { + cancelAnimationFrame(frame) + clear() + } }) }) }