Repository navigation
fix: add GET /room/memories endpoint + tighten POST /room/recall - #570
Merged
Merged
Conversation
| let limit = args["limit"].as_u64().unwrap_or(100) as usize; | ||
|
|
||
| let memories = uteke | ||
| .recall_room(room_id, author, limit) |
| .and_then(|q| parse_query_param(q, "limit")) | ||
| .and_then(|v| v.parse::<usize>().ok()) | ||
| .unwrap_or(100); | ||
| let author = query_str.and_then(|q| parse_query_param(q, "author")); |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
- Add GET /room/memories for chronological room memory listing - Wraps existing recall_room() core function (zero new core code) - Query params: room_id (required), author (optional), limit (default 100) - Returns 400 with usage hint if room_id missing - Tighten POST /room/recall: reject empty query with 400 - Error message points to GET /room/memories as the correct fallback - Add uteke_room_memories MCP tool (chronological listing) - Same params as HTTP: room_id, optional author, default limit 100 - Output format: [timestamp | namespace] content - Update --help output with new endpoint
ajianaz
force-pushed
the
fix/room-memories-endpoint-569
branch
from
July 5, 2026 23:33
e7afa0e to
26dd00f
Compare
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
fix: add GET /room/memories endpoint + tighten POST /room/recall
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.
Closes #569
Summary
Bug: had no chronological fallback — sending an empty query returned zero results silently instead of listing all room memories in order.
Fix (Option B from issue):
1. New endpoint:
2. Tightened
3. New MCP tool:
[YYYY-MM-DD HH:MM | namespace] contentChanges
uteke-server/src/handlers.rs— GET /room/memories route + empty query guard on POST /room/recalluteke-server/src/main.rs— Help output updateduteke-mcp/src/lib.rs— uteke_room_memories tool definition + executorTest plan
GET /room/memories?room_id=testreturns chronological memoriesGET /room/memoriesreturns 400 with usage messagePOST /room/recall { room_id: "x", query: "" }returns 400POST /room/recall { room_id: "x", query: "valid query" }still worksuteke_room_memoriestool lists memories chronologically