From 3704dbcee16b4b020c093fe986f379aad9c0dd44 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Fri, 6 Mar 2026 16:46:34 -0500 Subject: [PATCH] fix(ui): stabilize shell rolling output transitions --- packages/ui/src/components/shell-rolling-results.tsx | 1 + packages/ui/src/components/tool-utils.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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() + } }) }) }