Skip to content

Load earlier turns jumps the transcript to the oldest loaded turn #73

Closed

Description

@rynfar

Found in the #68 window pass.

Steps (smoke server 127.0.0.1:14658)

  1. Open "Turn 1: page history test" (mcp:5fa7c56f-8c79-46cb-a665-7aa90f62ee3d). The bounded snapshot loads turns 7 to 14.
  2. Scroll to the top of the transcript. "Load earlier turns" shows above turn 6's answer and the "Turn 7: page history test" prompt.
  3. Click "Load earlier turns".

Expected
The earlier turns are inserted above and the content you were reading stays where it was, so you keep reading from turn 7 and scroll up into the new history. The web keeps the visible rows in place when rows are prepended: maintainVisibleContentPosition = { data: true, size: true, … } in apps/web/src/components/chat/MessagesTimeline.tsx:832, passed to the list at line 1336. This is #9's acceptance criterion: "scrolling up loads earlier history without jumps".

Actual
The viewport jumps to the top of the newly loaded history ("Turn 1: page history test", then "Turn 2"). Turn 7, which was in view, is now several screens down. GPUI's ListState::splice keeps the logical scroll top at item index 0 (the history control row) when the earlier rows are spliced in, so the list stays pinned to the new first row instead of the row that was visible (crates/app/src/thread_view.rs, sync_history line 195 and rederive line 238).

Screenshots (offscreen renderer, 1440x900 @2x)

  • Before the click: /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/09-history-d-before-load.png
  • After the click: /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/09-history-e-after-load.png

Activity

  1. added this to the M1 Daily driver milestone on Nov 2, 2026
  2. added
    native:bug
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 2, 2026
  3. rynfar commented on Nov 2, 2026

    @rynfar
    OwnerAuthor

    Fixed in #79 (7faa613173).

  4. removed
    status:review
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions