Skip to content

Keep a short swipe up on a phone where the reader put it - #191

Merged
splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:scroll-follow
Nov 18, 2026
Merged

splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:scroll-follow

Conversation

@splitbrain-bot

Copy link
Copy Markdown

On a phone, a slow short swipe up in a thread jumped back to the bottom. Only a fast, wide swipe stayed up.

Cause: the thread viewport had the auto follow of assistant-ui turned on. Since assistant-ui 0.15.36 (#190), that follow counts a position within the footer height (about 110 px) of the bottom as the bottom. The swipe brings the header shelf back, which makes the viewport shorter, and the follow then scrolls down again.

Change: the viewport no longer turns on the auto follow of assistant-ui, which is also its default with turnAnchor="top". useFollowOutput keeps new output in view, and it stops following on a touch or wheel gesture.

Tests: dashboard/e2e/scroll.test.ts emulates touch input on a phone viewport.

  • A slow short swipe up stays where the reader put it. The test fails without the change.
  • An answer that outgrows the screen keeps its newest output in view.
  • Output that arrives outside a turn follows the bottom.

On a phone, a slow short swipe up in a thread jumped back to the bottom, and only a fast, wide swipe stayed up.
Since assistant-ui 0.15.36 (a397c69), the runtime's follow counted a position within the footer height of the
bottom as the bottom. The swipe brought the header shelf back, which made the viewport shorter, and the runtime
then scrolled down again. The thread viewport now leaves following to useFollowOutput, which stops following on a
touch or wheel gesture.
@splitbrain
splitbrain merged commit 053f9ac into splitbrain:main Nov 18, 2026
5 checks passed
@splitbrain-bot
splitbrain-bot deleted the scroll-follow branch November 18, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants