pi-memory icon indicating copy to clipboard operation
pi-memory copied to clipboard

memory_remember always fails

Open Razunter opened this issue 7 months ago • 1 comments

I'm using Qwen 3.6 locally, memory_remember always fails:

 Validation failed for tool "memory_remember":
   - type: must be equal to constant
   - type: must be equal to constant
   - type: must match a schema in anyOf

 Received arguments:
 {
   "type": "\"fact\"",
   "key": "\"a\"",
   "value": "\"b\""
 }

same with lesson.

Library installed as part of pi-total-recall.

Razunter avatar Apr 24 '26 11:04 Razunter

Thanks for the report — this is a known quirk with some local runners double-JSON-encoding tool arguments (the type arrives as the 7-char string "fact" instead of fact).

Fixed in 402302f and released as @samfp/[email protected] (and bundled into [email protected]). The tool now:

  • Accepts any string for type at the schema layer
  • Strips one layer of surrounding quotes from string args (type, key, value, rule, category)
  • Validates type ∈ {fact, lesson} inside the handler with a friendlier error

Update with npm i -g pi-total-recall@latest (or @samfp/pi-memory@latest if you use it directly) and give it another try. Closing — please reopen if you still hit it.

samfoy avatar Apr 24 '26 13:04 samfoy