Skip to content

fix(journal): delete daily review embedding vectors on review invalidation The vec0 virtual table backing daily review embeddings does not participate in FK cascades, so invalidating a daily review (new entry or /undo for that date) deleted the review and its embedding metadata but orphaned the vector row in daily_review_embedding_vec forever. Delete the vector rows explicitly before deleting the review, the same way delete_last_for_conversation already does for journal entry embeddings. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>#102

Merged
asiniscalchi merged 1 commit into
mainfrom
fix/daily-review-embedding-vec-orphans
Jun 12, 2026

Conversation

@asiniscalchi

Copy link
Copy Markdown
Owner

No description provided.

…ation

The vec0 virtual table backing daily review embeddings does not
participate in FK cascades, so invalidating a daily review (new entry
or /undo for that date) deleted the review and its embedding metadata
but orphaned the vector row in daily_review_embedding_vec forever.

Delete the vector rows explicitly before deleting the review, the same
way delete_last_for_conversation already does for journal entry
embeddings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@asiniscalchi asiniscalchi merged commit 79961a4 into main Jun 12, 2026
2 checks passed
@asiniscalchi asiniscalchi deleted the fix/daily-review-embedding-vec-orphans branch June 12, 2026 06:23
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.

1 participant