You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: quoted search falls back to BM25 and returns unrelated files (#527) (#528)
* fix: skip filename matching and BM25 ranking for quoted exact queries (#527)
Quoted queries like '"cleanupScopeMappings"' set exact:true on individual
AST terms but not the global exact flag. Two code paths only checked the
global flag, causing filename matching to tokenize the query into subwords
("cleanup", "scope", "map") and BM25 ranking to boost unrelated files.
Now check both the global exact flag and is_exact_search(ast) to properly
detect quoted queries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve flaky test_tree_cache_invalidation by removing exact size assertion
The test asserted get_cache_size() == 1, but the tree cache is a
process-wide global static. Other tests running in parallel can add
entries even though this test holds a local mutex. Replaced with
is_in_cache() check which validates the correct behavior without
being sensitive to parallel test interference.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments