Frontmatter
| id | 7689 |
| title | Bug: Memory Core `querySummaries` fails when category is undefined |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Nov 2, 2025, 5:14 PM |
| updatedAt | Nov 2, 2025, 5:15 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7689 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 2, 2025, 5:15 PM |
The
querySummariesmethod inSummaryService.mjsconstructs a ChromaDB query. When thecategoryparameter isundefined, thewhereclause of the query is set towhere: undefined.The ChromaDB client does not handle this gracefully and throws an error:
Expected 'where' value to be a string, number, boolean, or an operator expression, but got undefined.The fix is to conditionally build the query parameters, only adding the
wherekey if acategoryis provided.