Repository navigation
Normalize non-ASCII path queries before smart-case matching - #7276
Merged
Merged
Conversation
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.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
Unicode uppercase in path queries enabled smart-case matching throughout the shared path matcher, excluding lowercase filenames. The same failure reproduced at trusted main commit
55135d1e5045d6c5d3c24f5a4d5556ed3e11cb00in two clean checkouts. Reproduction and root-cause report.What changed
Normalize queries without ASCII uppercase once at the
fuzzyMatchPathsboundary so plain matching, structured paths, directory prefixes, and ranking agree. Preserve existing ASCII smart-case behavior. Add regression coverage in the existing matcher suite for Cyrillic and Greek casing, structured paths, and the unchanged ASCII control.Changed-line count against
origin/main: 42 text lines (41 additions + 1 deletion), 2 files, all withinpackages/fuzzy-match. No dependencies, lockfiles, generated files, data changes, or public protocol changes.How you verified
pnpm exec turbo run test --filter=@bb/fuzzy-match -- --testNamePattern='non-ASCII query casing|preserves ASCII smart-case'failed as expected: 3 regression cases failed; the ASCII control passed.pnpm exec turbo run test typecheck --filter=@bb/fuzzy-matchpassed all 36 tests and typecheck.pnpm exec turbo run test --filter=@bb/host-daemon -- src/command-handlers/file-list.test.ts src/command-handlers/workspace-path-list.test.tspassed all 32 existing tests.git diff --checkpassed. No binary changes.Fixes #7275