mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 14:01:28 +08:00
search_files promises case-insensitive substring matching, but _search_files_sync interpolated the query into a LIKE pattern without escaping. SQLite LIKE treats '_' as any single character and '%' as any run, so a query like 'report_v1' matched 'reportXv1.pdf' too — filenames commonly contain '_', so the false positives are routine. Escape the query's LIKE metacharacters and add ESCAPE. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>