You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decide comma-split behavior for note_types/entity_types/categories params in search_notes #930
#910 fixed comma-splitting for the `tags` parameter of `search_notes` (now uses `parse_tags`, consistent with `write_note` and the `tag:` query shorthand).
The same gap remains for the other list-typed params — `note_types`, `entity_types`, and `categories` still use `coerce_list`, which wraps a comma string as a single literal element instead of splitting. Single values and JSON-array strings already work; only the comma-string form differs from `tags`.
This was deliberately left out of #910 (minimize-diffs), but it needs an explicit decision rather than silent closure:
Option A: comma-split these params too (consistent tool surface; an agent that learned `tags="a,b"` will try `note_types="note,task"`)
Option B: keep as-is and document clearly per param that comma strings are not split
Note `coerce_list` itself can't change globally — `canvas.py` uses it for lists of dicts that must never comma-split. A dedicated coercer per convention is the likely shape.
A related review note on #910: `parse_tags`' catch-all branch stringifies non-str/list inputs (e.g. `tags=5` → `["5"]`) instead of rejecting them; if strict input rejection is wanted, that belongs in the same decision.
Updated param docstrings to document the comma-string form
tests/test_coerce.py — 17 new TestParseStrList test cases covering all input shapes, JSON fallback, no-#-stripping, and strict rejection.
Push issue
The github-actions[bot] token is being denied write access to the repository (403 Permission denied). The commit 184b9a9 is ready locally — a maintainer can push claude/issue-930-20260609-2311 or cherry-pick into a branch with write access.
Activity
claude commentedon Jun 9, 2026
Claude finished @phernandez's task in 6m 37s —— View job
Triage & Implementation Plan
Classification: Enhancement (Medium complexity) — MCP tools / core
Decision: Option A — comma-split
note_types,entity_types,categoriesfor consistency withtags.Label added:
enhancementsearch_notes,coerce_list,parse_tags)parse_str_listinutils.pysearch.py— swap BeforeValidatorstests/test_coerce.py)184b9a9)What was implemented
src/basic_memory/utils.py— newparse_str_list(v)coercer:None→[]"note,task"→["note", "task"](comma-split)'["note","task"]'→["note", "task"](JSON array string)["note,task"]→["note", "task"](list with comma-string element)ValueError(strict rejection, as the issue requested)#(unlikeparse_tags) — correct for type/category paramscoerce_listis left unchanged —canvas.pyuses it for list-of-dict params where comma-splitting would be wrong.src/basic_memory/mcp/tools/search.py:note_types,entity_types,categories:BeforeValidator(coerce_list)→BeforeValidator(parse_str_list)tags:BeforeValidator(coerce_list)→BeforeValidator(parse_tags)(fixes the gap from [BUG] search_notes(tags="a,b") ignores comma-separated tags (inconsistent with the tag: query shorthand) #910)tests/test_coerce.py— 17 newTestParseStrListtest cases covering all input shapes, JSON fallback, no-#-stripping, and strict rejection.Push issue
The
github-actions[bot]token is being denied write access to the repository (403 Permission denied). The commit184b9a9is ready locally — a maintainer can pushclaude/issue-930-20260609-2311or cherry-pick into a branch with write access.docs(skills): fix npx skill install docs and ignore docs assets (#927)
feat(mcp): comma-split note_types/entity_types/categories in search_n…