Skip to content

Normalize non-ASCII path queries before smart-case matching - #7276

Merged
ymichael merged 1 commit into
mainfrom
slopcop/issue-7275
Nov 9, 2026
Merged

ymichael merged 1 commit into
mainfrom
slopcop/issue-7275

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human 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 55135d1e5045d6c5d3c24f5a4d5556ed3e11cb00 in two clean checkouts. Reproduction and root-cause report.

What changed

Normalize queries without ASCII uppercase once at the fuzzyMatchPaths boundary 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 within packages/fuzzy-match. No dependencies, lockfiles, generated files, data changes, or public protocol changes.

How you verified

  • Before the production change: 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.
  • After the fix: pnpm exec turbo run test typecheck --filter=@bb/fuzzy-match passed 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.ts passed all 32 existing tests.
  • The standalone reproduction failed in both clean base checkouts and passed against the fix. No live API or macOS UI verification is claimed.
  • The full Turbo build passed after building the SDK distribution and bundled types required by the clean checkout.
  • Formatter check and git diff --check passed. No binary changes.

Fixes #7275

AGENT GENERATED

@ymichael
ymichael merged commit 8bdecae into main Nov 9, 2026
50 checks passed
@ymichael
ymichael deleted the slopcop/issue-7275 branch November 9, 2026 19:57
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.

@-mention path search fails for Cyrillic filenames when query contains uppercase Cyrillic letters

2 participants