Skip to content

session: paginate message loading#6656

Open
ry2009 wants to merge 1 commit intoanomalyco:devfrom
ry2009:feat/session-message-pagination
Open

session: paginate message loading#6656
ry2009 wants to merge 1 commit intoanomalyco:devfrom
ry2009:feat/session-message-pagination

Conversation

@ry2009
Copy link
Contributor

@ry2009 ry2009 commented Jan 2, 2026

  • Adds cursor pagination for session messages: GET /session/:sessionID/message?limit=…&before=… and sets Link:
    …; rel="next" when older pages exist.
    • TUI loads older messages when you scroll near the top (shows “Loading more…”), preserving scroll position.
    • Removes the hard 100 message trimming so loaded history doesn’t get dropped.
    • Regenerated SDK/OpenAPI (packages/sdk/*) and added a unit test packages/opencode/test/session/messages-
      pagination.test.ts.
    • Note: not true virtualization yet (we still render all loaded messages).

@ry2009
Copy link
Contributor Author

ry2009 commented Jan 2, 2026

maybe a separate pr ab implementing real windowing for true virtualization

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.

1 participant