Repository navigation
Mobile: load earlier thread activity automatically when scrolling to the top #20904
MegaWattCZE
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
On mobile (Android), opening a thread after a long agent run shows only the latest page of history, topped by the Load earlier activity button. To read my own last prompt, or the agent's whole run since that prompt, I have to tap the button several times, scrolling back to the top after each page. A single long run produces many activity rows, so one page rarely reaches the prompt.
Current behaviour (from source on
main)apps/mobile/src/features/threads/ThreadFeed.tsx:ThreadFeedLoadEarlierControlis rendered inListHeaderComponentand only callsonLoadEarlieron press.onStartReachedhandler, so scrolling to the top of the loaded window loads nothing, and there is no pull/swipe gesture for it either.Proposal
Either of these would solve it, and they combine well:
onStartReached, or the header's visibility), load the next older page automatically, with the button kept as a fallback for errors and for accessibility. The list already setsmaintainVisibleContentPosition, so prepending should not move the content.A pull-down gesture at the top (the reverse of pull-to-refresh) would be an acceptable alternative to (1).
The web client may have the same pattern; this request is about mobile, where repeated taps and scrolling cost the most.
All reactions