Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: model reader scroll intent in browser coverage

Steven Enamakelb48539662f33
diff --git a/app/test/playwright/specs/chat-scroll-stick.spec.ts b/app/test/playwright/specs/chat-scroll-stick.spec.ts
index ca84c41db3..88168aed3d 100644
--- a/app/test/playwright/specs/chat-scroll-stick.spec.ts
+++ b/app/test/playwright/specs/chat-scroll-stick.spec.ts
@@ -126,6 +126,10 @@ async function scrollTo(page: Page, top: number): Promise<void> {
await page.evaluate(`(() => {
const el = ${FIND_VIEWPORT};
if (!el) throw new Error('transcript viewport [data-slot=aui_thread-viewport] not found');
+ // The follower deliberately distinguishes a reader gesture from a
+ // programmatic alignment. Mark this synthetic scroll as the wheel input a
+ // real reader would generate before the viewport moves.
+ el.dispatchEvent(new WheelEvent('wheel', { deltaY: ${top} }));
el.scrollTo({ top: ${top}, behavior: 'instant' });
el.dispatchEvent(new Event('scroll', { bubbles: true }));
})()`);