mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 09:42:15 +03:00
searchHybrid in vectorStore.ts runs its own raw FTS5 MATCH — the earlier retrieval.ts fix missed it, so hybrid queries with punctuation still threw 'fts5: syntax error'. Extracted the sanitizer to src/lib/memory/ftsQuery.ts (no import cycle) and applied it at all three MATCH sites; punctuation-only queries now yield a non-matching '""' phrase instead of an error.