fix(app): scroll submissions to the end from history

This commit is contained in:
Kit Langton 2026-10-20 12:51:35 -07:00
parent 11bb2e1b60
commit 9f8cb10b5e

View file

@ -918,7 +918,14 @@ export function createTimelineVirtualizer(input: Input) {
if (!active() || !root?.isConnected) return
// Already following its end (sending a prompt resumes it): rows growing in keep growing.
if (behavior !== "smooth" && following() && !rendering.anchor && !rendering.scrollAdjustment) return
if (
behavior !== "smooth" &&
following() &&
!rendering.anchor &&
!rendering.scrollAdjustment &&
root.scrollHeight - root.clientHeight - root.scrollTop <= 1
)
return
prepareNavigation()
input.onPin()