Skip to content

fix(sync): preserve partial scan history - #294

Merged
xingkaixin merged 2 commits into
mainfrom
feat/cs-175-scan-completeness
Aug 9, 2026
Merged

fix(sync): preserve partial scan history#294
xingkaixin merged 2 commits into
mainfrom
feat/cs-175-scan-completeness

Conversation

@xingkaixin

Copy link
Copy Markdown
Owner

Summary

  • propagate snapshot completeness and explicit removals from scan workers to persistence
  • preserve durable session facts when a windowed or degraded scan publishes a partial snapshot
  • keep confirmed source deletions effective without treating omitted history as deleted

Root cause

The refresh pipeline discarded the scan scope/completeness before it reached cache and search-index persistence. A partial publication was therefore interpreted as a complete replacement, which could delete sessions, messages, file activity, and indexed content outside the scan window.

Validation

  • pnpm lint
  • pnpm format:check
  • pnpm build
  • pnpm test
  • pnpm test:e2e

Closes CS-175.

@xingkaixin
xingkaixin marked this pull request as ready for review August 9, 2026 02:16
@xingkaixin
xingkaixin merged commit 2bbc3ea into main Aug 9, 2026
10 checks passed
@xingkaixin
xingkaixin deleted the feat/cs-175-scan-completeness branch August 9, 2026 02:20
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