1.9 KiB
1.9 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 89f32ef3-2d87-4b8c-aa6e-ce5a7f60566c | fix | Fix: Partial UUID prefix matching in cognitive memory client (git-style) |
|
0.8 | 0.8 | 2026-02-28T06:03:13.780326+00:00 | 2026-02-28T06:03:31.564486+00:00 |
|
Partial UUID Prefix Matching in CognitiveMemoryClient
Problem
Users had to type full UUIDs when referencing memories or edges via the client. This was inconvenient — git-style short prefix matching was missing.
Solution
Added a _resolve_prefix() static method to CognitiveMemoryClient that resolves partial UUID prefixes to full IDs.
Resolution logic:
- Check for an exact match first (pass-through if full UUID provided)
- Scan all IDs with
startswith(prefix)for partial matches - Single match → returns the full ID
- Multiple matches → raises
ValueErrorwith the list of candidate IDs - No matches → returns
None(falls through to existing behavior)
Applied to 4 functions:
_resolve_memory_path_resolve_edge_pathedge_search(bothfrom_idandto_idparams)related()
Commit & Issue
- Committed as
471d870oncal/claude-configsmain branch - Closes
cal/claude-memory#3
Important Note
The MCP server process must be restarted to pick up changes since it is long-running and does not hot-reload source files.