Repository navigation
fix: resolve issues #620, #621, #623, #624 - #625
Merged
Merged
Conversation
… stdin pipe, room defaults, author metadata - fix(core): add retry logic (3 attempts, exponential backoff) around embedding generation to prevent silent vector index desync (#621) - fix(core): retry index.save() up to 3 times in both remember and forget to prevent orphan entries on transient I/O failures (#621) - fix(cli): read from stdin when content argument is '-' instead of storing literal dash string (#620) - fix(cli): change room recall default limit from 20 to 0 (all) since rooms are bounded contexts — add LIMIT clause only when limit > 0 (#623) - fix(core): enrich room recall memories with author from room_memories table, injected into metadata JSON field (#624) Note: #622 (line numbers in recall JSON) is a data issue — content was stored with line numbers from read_file output. Not a code bug.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · 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.
Summary
Fixes 4 of 5 open issues (closes #620, #621, #623, #624). Issue #622 is a data issue, not a code bug (see notes below).
Changes
#621 🔴 Vector index desync from SQLite (critical)
#620 🟠 Stdin pipe stores literal dash
-, read from stdin (standard Unix convention). Empty stdin is rejected with an error message.#623 🟡 Room recall default limit 20 truncation
room recalldefault--limitfrom20to0(meaning "all").recall_room()omits the SQLLIMITclause when limit=0.recall_room_semantic()uses 1000 as effective limit when limit=0.--limitflag still available for explicit pagination.#624 🟢 Author metadata missing from room recall JSON
get_room_author_map()helper to fetch memory_id→author mapping.recall_room()now enriches each memory'smetadatafield with theauthorkey fromroom_memoriestable.#622 — Line numbers in recall JSON (not a code bug)
Content was stored with
N|prefixes fromread_fileoutput (Hermes tool). The recall JSON path usesserde_json::to_stringdirectly — no line number formatting. Theroom recallreturns different memories that happen to not have line-numbered content. This is a data quality issue, not a code bug. Closing with explanation.Testing
cargo fmt --all -- --check✅cargo clippy --workspace --all-targets -- -D warnings✅cargo test --workspace— 299 passed ✅cargo check --workspace✅