Skip to content

session: paginate message loading#6656

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

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions bot closed this Mar 4, 2026
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