Repository navigation
feat: add an existing memory to a room without copying it (#1589) - #1590
Merged
Merged
Conversation
uteke room link, POST /room/memory (LAB) and the MCP tool uteke_room_link_memory. The room and the memory must exist; linking twice is not an error.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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.
What
Adds a way to put an existing memory in a room without copying it:
Uteke::add_memory_to_room(memory_id, room_id, author)(room and memory must exist,NotFoundotherwise; idempotent, the first link and its author are kept; returns whether a new link was made)uteke room link <memory_id> <room> [--author]POST /room/memorywith{ memory_id, room, author? }(LAB tier, a write row so read-only tokens are refused);memory_idis a full id or an unambiguous prefix (shared resolver); answers{ memory_id, room, linked, already_linked }uteke_room_link_memorydocs/mcp.md(50 tools), both skill copies, CHANGELOG.Why
#1589: the only ways to get a memory into a room were
rememberwith a room (a duplicate) orroom move, which returns 404 when the memory has no link in the source room.Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked,cargo run -p docgen.