fix(agents): keep clearing the held row while following the end

Цей коміт міститься в:
l0ng-ai committed 2026-12-03 23:13:38 +08:00
1 джерело 83e19d9225
коміт 2b129aa180
1 file changed
+4 -1
+4 -1
Переглянути файл
@@ -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);
};