Skip to content

fix: resolve issues #620, #621, #623, #624 - #625

Merged
ajianaz merged 1 commit into
developfrom
fix/uteke-issues-620-624
Jul 9, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/uteke-issues-620-624

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

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)

  • Embedding retry: Added helper with 3 attempts + exponential backoff (200ms, 400ms, 800ms) around embedding generation in . Previously, a single failure silently dropped the vector entry.
  • Index save retry: Both and now retry up to 3 times. A failed save means the in-memory index has the entry but on-disk doesn't → silent desync on next process launch.

#620 🟠 Stdin pipe stores literal dash

  • When argument is -, read from stdin (standard Unix convention). Empty stdin is rejected with an error message.

#623 🟡 Room recall default limit 20 truncation

  • Changed room recall default --limit from 20 to 0 (meaning "all").
  • recall_room() omits the SQL LIMIT clause when limit=0.
  • recall_room_semantic() uses 1000 as effective limit when limit=0.
  • --limit flag still available for explicit pagination.

#624 🟢 Author metadata missing from room recall JSON

  • Added get_room_author_map() helper to fetch memory_id→author mapping.
  • recall_room() now enriches each memory's metadata field with the author key from room_memories table.

#622 — Line numbers in recall JSON (not a code bug)

Content was stored with N| prefixes from read_file output (Hermes tool). The recall JSON path uses serde_json::to_string directly — no line number formatting. The room recall returns 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 ✅

… 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.
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit b94149f into develop Jul 9, 2026
8 checks passed
@ajianaz
ajianaz deleted the fix/uteke-issues-620-624 branch July 9, 2026 16:38
ajianaz added a commit that referenced this pull request Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: uteke remember ignores stdin pipe content, stores literal dash

1 participant