Skip to content

Reconcile Gmail label state during sync#107

Draft
bberenberg wants to merge 2 commits into
ankitvgupta:mainfrom
bberenberg:codex/pr92-gmail-label-sync
Draft

Reconcile Gmail label state during sync#107
bberenberg wants to merge 2 commits into
ankitvgupta:mainfrom
bberenberg:codex/pr92-gmail-label-sync

Conversation

@bberenberg

Copy link
Copy Markdown

Summary

Changes

  • reconcile visible inbox label state during sync using current Gmail labels
  • deduplicate newMessageIds before fetching message bodies during incremental sync
  • replace substring-based inbox label checks in the new reconciliation helpers with json_each membership checks
  • add focused unit coverage for the new dedupe and inbox label matching behavior

Tests

  • npx tsc --noEmit
  • npm run test:unit -- database
  • npm run test:unit -- email-sync

Split from #92.

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