Repository navigation
fix: add missing metadata fields to HTTP POST /remember (#682) - #683
Merged
Merged
Conversation
RememberRequest was missing 5 fields that the CLI supports: - entity: stored as metadata key "entity" - category: stored as metadata key "category" - metadata: arbitrary JSON object merged into metadata map - source/source_type: set via set_source() after storage All new fields are Option + serde(default), fully backward compatible. Enables /recall entity/category filters to work with HTTP-stored memories.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…-682 fix: add missing metadata fields to HTTP POST /remember (#682)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #682
RememberRequestwas missing 5 fields that the CLI supports, making/recallentity/category filters unusable for HTTP-stored memories.Changes
Optionfields toRememberRequest:entity— stored as metadata key "entity"category— stored as metadata key "category"metadata— arbitrary JSON object merged into metadata mapsource— provenance, set viaset_source()after storagesource_type— defaults to "user"set_source()after successful remember (matching CLI). Logs error if set_source fails.Backward Compatibility
All new fields are
Option<String>/Option<serde_json::Value>with#[serde(default)]. Existing clients that don't send these fields are unaffected — zero breaking change.Test Plan
curl -X POST /remember -d '{"content":"test","entity":"foo","category":"bar"}'→ stores with metadatacurl -X POST /recall -d '{"query":"test","entity":"foo"}'→ returns the memorycurl -X POST /remember -d '{"content":"test","source":"cli","source_type":"manual"}'→ source columns set