Skip to content

fix: recurring tasks spawn overdue and duplicate occurrences - #193

Merged
NagariaHussain merged 2 commits into
bwhtech:developfrom
kaulith:fix/recurring-task-duplicates
Sep 26, 2026
Merged

NagariaHussain merged 2 commits into
bwhtech:developfrom
kaulith:fix/recurring-task-duplicates

Conversation

@kaulith

@kaulith kaulith commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Completing an overdue recurring task created the next occurrence with a due date already in the past. A daily task last due on 23 Sep, closed on 26 Sep, came back due 24 Sep, so it had to be closed once for every missed day. Reopening a completed task and closing it again also created a second copy of the next occurrence.

Fix

_maybe_spawn_recurrence keeps adding the recurrence period until the next due date is on or after today, so the cadence is kept. It also skips creating an occurrence while the series already has an open, unarchived task. Tasks without recurrence are unaffected.

One example

Screenshot 2026-09-26 at 7 55 04 PM

Occurrence was set to daily and even after moving it to done, task appears again in To-Do. Had to change occurrence to never.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@NagariaHussain
NagariaHussain merged commit 39c5c9d into bwhtech:develop Sep 26, 2026
4 checks passed
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.

2 participants