fix(memory-core): stream embedding cache seed during reindex#73118
Conversation
PR SummaryMedium Risk Overview The cache-seed loop periodically yields ( Reviewed by Cursor Bugbot for commit 748f3d9. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR replaces Confidence Score: 5/5Safe to merge — the logic change is minimal, error handling is correct, and the regression test directly verifies the streaming path. No P0 or P1 issues found. The lazy transaction initialisation, streaming iteration, yield cadence, and ROLLBACK guard are all handled correctly. The test is well-scoped: it reads cached rows from the source DB before installing the spy, drives a forced reindex, and confirms no extra embedding calls were made. No files require special attention. Reviews (1): Last reviewed commit: "fix(memory-core): tighten cache seed str..." | Re-trigger Greptile |
Summary
maintainerCanModify=true.embedding_cacheseeding with SQLiteiterate()and avoid a no-op transaction for empty caches.Verification
.all()forced to throw, safe reindex copied rows through exactly one streamed SELECT.pnpm test extensions/memory-core/src/memory/index.test.tspnpm test extensions/memory-core/src/memorypnpm check:changedSupersedes #73067. Thanks @parkertoddbrooks.