fix(calendar): M1 — propagate Google pull-side updates and deletes - #276
Merged
Conversation
…re client variants
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Milestone 1 of Google Calendar Phase 2. Fixes three correctness bugs in the Google pull loop so Google-side updates, deletions, and cursor-invalidation reach bound Memry records.
applyGoogleCalendarWriteback(previously never invoked by the pull loop)applyGoogleCalendarDelete(previously dropped)client.listEvents— insurance for future client variants; see docs commit for why current path is dormantNo schema changes, no new IPC surface, no renderer changes.
Design:
.claude/plans/2026-04-18-google-calendar-phase-2-design.mdPlan:
.claude/plans/2026-04-18-google-calendar-phase-2-m1-correctness.mdTest plan
findCalendarBindingByRemoteEventreturns the active binding and skips archived onescalendar_eventsrow; mirror stays empty; binding etag refreshedlistEventsclearssyncCursorand retries withnullpnpm --filter @memry/desktop exec vitest rungreenpnpm typecheck:nodeandpnpm typecheck:webclean (modulo known pre-existing test-file errors called out in CLAUDE.md)pnpm lintclean