Skip to content

fix: recurring habits match by title only in calendar dedup - #42

Merged
thomasluizon merged 1 commit into
mainfrom
fix/calendar-dedup-recurring-title-only
Mar 25, 2026
Merged

fix: recurring habits match by title only in calendar dedup#42
thomasluizon merged 1 commit into
mainfrom
fix/calendar-dedup-recurring-title-only

Conversation

@thomasluizon

Copy link
Copy Markdown
Owner

Summary

  • Recurring habits have an advancing DueDate, so exact date comparison never matches future calendar instances
  • Now uses two strategies:
    • Recurring habits: hide events matching by title only (since the habit already covers all future occurrences)
    • One-time habits: hide events matching by title + date + time (different date/time = different appointment)

Test plan

  • Have a recurring habit "Check In | Thomas" (weekly)
  • Google Calendar has recurring "Check In | Thomas" instances
  • Open /calendar-sync -- "Check In | Thomas" should NOT appear
  • One-time appointments with different dates should still appear

🤖 Generated with Claude Code

Recurring habits have an advancing DueDate, so exact date comparison
never matches future calendar instances. Now:
- Recurring habits: hide events matching by title only
- One-time habits: hide events matching by title + date + time

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@thomasluizon
thomasluizon merged commit cf43a22 into main Mar 25, 2026
2 checks passed
@thomasluizon
thomasluizon deleted the fix/calendar-dedup-recurring-title-only branch March 25, 2026 18:21
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