Skip to content

Fix occurrence notes which don't have today's date - #2175

Open
chmac wants to merge 7 commits into
callumalpass:mainfrom
chmac:2173-occurrence-notes-anchor-completion
Open

Fix occurrence notes which don't have today's date#2175
chmac wants to merge 7 commits into
callumalpass:mainfrom
chmac:2173-occurrence-notes-anchor-completion

Conversation

@chmac

@chmac chmac commented Jul 30, 2026

Copy link
Copy Markdown

This PR is dependent on this PR in the model repo: callumalpass/tasknotes-model#8

It makes a minor change to leverage that PR.

Same disclaimer applies, I've read the code, and it works for me locally, I'm running it on my vault, but I don't know your codebase well enough to make any statements about its quality.

theoretically fixes #2173

chmac and others added 7 commits June 22, 2026 15:08
- When scheduled dates are in the future
- When the scheduled date has changed from the recurrence date
- Keeps due date relative to the recurrence (DTSTART) date
- When scheduled dates are in the future but before the next recurrence
@tasknotes/model now accepts an explicit completionDate so that completing a
materialized occurrence under recurrence_anchor: completion advances the
parent using when it was actually completed, not the occurrence's identity
date. Requires an @tasknotes/model release that includes this field to take
effect.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…occurrence_date.

getCompletionDateForTask preferred occurrence_date over the real completion
date whenever it was present, which is exclusively the case for materialized
occurrence notes - so completing one always recorded completedDate as the
occurrence's identity date instead of when it was actually marked done.
Removed the helper and call getCurrentDateString() directly in
updateProperty, matching how completedDate works for every other task.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

[Bug]: Recurrence anchor completion doesn't work with occurrence notes

1 participant