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); };