Skip to content

Fix slow file search sidebar freezes - #208

Merged
nwparker merged 1 commit into
mainfrom
nwparker/slow-search
Mar 30, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/slow-search

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Problem

The file search sidebar could freeze the app when searching large worktrees. Superseded ripgrep processes kept running, the main process kept parsing large result streams, and the renderer eagerly mounted the full nested result tree.

Solution

Cancel superseded search jobs in the main process, cap search results more aggressively, and virtualize the sidebar row model so only visible search rows render. Added a focused row-flattening test for the virtualized search UI.

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