Repository navigation
Fix slow file mentions by pruning Git-ignored paths - #3430
Merged
ymichael merged 1 commit intoSep 10, 2026
Merged
Conversation
ymichael
deleted the
bb/investigate-file-mentions-in-threads-thr_igk8qyjwk7
branch
September 10, 2026 20:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
After #3390 enabled hidden entries, every file-mention query recursively scanned ignored build output, dependency stores, and nested worktrees. Incremental typing started overlapping scans. A large checkout took 5.84 seconds to search roughly 304,000 entries, leaving the new-thread composer on “Searching mentions…”.
What changed
respectGitIgnoredaemon field; protocol version increases from 198 to 199..pnpm-storeand root-relative.claude/worktreesin the default exclusions. Exclusions now support exact root-relative paths as well as basenames. Update CLI help and guide/SDK documentation.How you verified
226 relevant tests passed, including tracked files matched by ignore patterns, new untracked files, nested ignore rules and negation, linked worktrees, hidden files, shared discovery, failure recovery, and refresh after edits:
With both new directory exclusions disabled, the same checkout improved from 5.84 s / 304,068 entries to 119 ms / 6,681 entries, retaining README and hidden workflows.
Verified in an isolated source app with Worktree selected: incremental
@READMEsearch returned tracked and untracked files, selecting the untracked file inserted its mention, and an arbitrary Git-ignored build directory was omitted. The source CLI confirmed general filesystem listing can still inspect ignored files. No deployed instance was changed.