From 2b129aa180489ee55939677a29818ae1e75d913c Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Thu, 3 Dec 2026 23:13:37 +0800 Subject: [PATCH] fix(agents): keep clearing the held row while following the end --- src/features/agents/session/Stream.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/agents/session/Stream.tsx b/src/features/agents/session/Stream.tsx index 16c4f25ab5..f4d3723384 100644 --- a/src/features/agents/session/Stream.tsx +++ b/src/features/agents/session/Stream.tsx @@ -621,7 +621,10 @@ export function Stream({ // before it paints. Following the end, the end stays in view. const el = ref.current; if (!el || typeof ResizeObserver === "undefined") return; - const resize = new ResizeObserver(() => (position.current.stick ? followEnd() : holdShownRow())); + const resize = new ResizeObserver(() => { + holdShownRow(); + if (position.current.stick) followEnd(); + }); const watch = () => { for (const row of el.querySelectorAll(`:scope > .${styles.conversationRow}`)) resize.observe(row); };