Files
t3code/apps/web
olafuraandClaude Opus 4.8 ae2610b8c1 feat(web): lazy-load older thread history on scroll-up
The server windows thread detail to the most recent 500 activities and reports
`hasMoreActivities`. The web timeline now fetches older pages on demand via the
getThreadActivities RPC:

- client-runtime: loadThreadActivities command on orchestrationEnvironment.
- ChatView keeps per-thread older pages in local state, prepends them ahead of
  the live window, and derives hasMore from the server flag (no client-side
  window-size constant). A thread-keyed in-flight ref coalesces the duplicate
  dispatches a fast scroll-to-top would otherwise fire, and a request-key guard
  discards results after a thread switch.
- MessagesTimeline triggers a load on reaching the top
  (maintainVisibleContentPosition anchors the viewport on prepend) with a
  "Load older history" header and loading indicator.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-20 17:26:29 +02:00
..
2026-06-29 22:57:48 +00:00