codeg icon indicating copy to clipboard operation
codeg copied to clipboard

Add pagination for conversation history loading

Open ijry opened this issue 5 months ago • 1 comments

Summary

  • add backend pagination params and metadata to get_folder_conversation
  • load only the newest page by default, with incremental history loading in the conversation runtime
  • add a UI action to load earlier messages for conversation detail, with i18n strings and updated tests

Testing

  • pnpm exec tsc --noEmit
  • pnpm exec vitest run src/contexts/conversation-runtime-context.test.tsx src/components/conversations/conversation-detail-panel-layout.test.ts src/components/message/sub-agent-session-dialog.test.tsx

ijry avatar Jun 11 '26 12:06 ijry

Thank you for your pull request. The current virtual list performs very well and does not require pagination. In fact, pagination would lose some functionality, such as message navigation and conversation location.

xintaofei avatar Jun 12 '26 01:06 xintaofei