Skip to content

session: paginate message loading - #6656

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

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

Conversation

@ry2009

Copy link
Copy Markdown
Contributor
  • 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
Copy Markdown
ContributorAuthor

maybe a separate pr ab implementing real windowing for true virtualization

@github-actions

Copy link
Copy Markdown
Contributor

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.

Sign up for freeto 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

@ry2009