From 65a3689aaa86e6fbbdbcf4b0600b42092c76f1c8 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 12 May 2026 16:41:15 -0400 Subject: [PATCH] fix(notes): list_notes strips type-nouns from q before ILIKE filter Co-Authored-By: Claude Opus 4.7 (1M context) --- src/fabledassistant/services/notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fabledassistant/services/notes.py b/src/fabledassistant/services/notes.py index d5a4556..0d46d96 100644 --- a/src/fabledassistant/services/notes.py +++ b/src/fabledassistant/services/notes.py @@ -166,7 +166,7 @@ async def list_notes( count_query = count_query.where(Note.status.is_(None)) if q: - terms = q.split() + terms = _strip_type_nouns(q) for term in terms: escaped_term = term.replace("\\", "\\\\").replace("%", "\\%").replace("_", "\\_") pattern = f"%{escaped_term}%"