fix(mcp): operator precedence in search_memory filter (#4470) (#4474)

This commit is contained in:
Himanshu
2026-03-21 21:27:35 +05:30
committed by GitHub
parent eb780f4880
commit ec326f0f92
+1 -1
View File
@@ -184,7 +184,7 @@ async def search_memory(query: str) -> str:
for h in hits: for h in hits:
# All vector db search functions return OutputData class # All vector db search functions return OutputData class
id, score, payload = h.id, h.score, h.payload id, score, payload = h.id, h.score, h.payload
if allowed and h.id is None or h.id not in allowed: if allowed and (h.id is None or h.id not in allowed):
continue continue
results.append({ results.append({