Skip to content

[codex] limit initial chat history loading#3378

Merged
louis030195 merged 1 commit into
mainfrom
codex/chat-history-lazy-load
May 13, 2026
Merged

[codex] limit initial chat history loading#3378
louis030195 merged 1 commit into
mainfrom
codex/chat-history-lazy-load

Conversation

@louis030195
Copy link
Copy Markdown
Collaborator

Summary

  • cap default chat history/sidebar hydration to the newest 50 conversation metadata rows
  • keep older chats searchable through an explicit archive search path that scans message content on demand
  • lazy-load full conversation JSON only when a chat is opened, and update the search modal/inline history UI to use metadata rows

Why

The app was reading every ~/.screenpipe/chats/*.json file and holding full message arrays during normal chat UI startup. Large chat archives made the sidebar/history/search surfaces feel stuck before the user had asked to search old content.

Validation

  • bunx tsc --noEmit
  • bunx vitest run --config vitest.config.ts

@louis030195 louis030195 marked this pull request as ready for review May 13, 2026 22:43
@louis030195 louis030195 merged commit 8f4a937 into main May 13, 2026
15 of 16 checks passed
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