Repository navigation
A task ticked in the Tasks plugin stays ticked (#413) - #420
Merged
Merged
Conversation
…page files (#413) The note's ticks were taken into the notebook file's own payload, which the page files then replaced, so the next save wrote the box back unticked with the Tasks plugin's done date kept. Ticks are now taken once the pages are read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page-file notebook is read again whenever another device's page file arrives; the note can be behind a tick made on the canvas then, and taking its box would undo that tick. The note's ticks now wait for the page files with the note as last read, and only boxes that changed in it are taken. The same comparison keeps an unsaved canvas tick when the Tasks plugin changes another item. ink-view.ts's cap goes up by 6 lines for the wiring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a page-file notebook the note's file holds no ink of its own, so a re-read whose checklist differs is not skipped as this view's own text: a Tasks untick right after a tick gives back the exact earlier bytes. Ticks are also taken when a page comes from a newer FineNotes, which still saves. ink-view.ts's cap follows (+7, the split import and wiring). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # scripts/checks/file-size.json
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.
What changed and why
Since 3.0 a task ticked in an Obsidian Tasks query came back unticked, keeping its done date (
- [ ] task ✅ 2026-12-03), at the notebook's next save. A notebook kept as page files took the note's ticks into a stand-in document that the page files then replaced. The ticks now wait until the pages are read, and only boxes that changed in the note since it was last read are taken, so a tick made in the notebook is never undone by a note that has not caught up. Closes #413.Proof
app.vault.processas the Tasks plugin does): onmainthe box stayed ☐ and the next save wrote- [ ] Buy milk [[#Page 1]] ✅ 2026-12-04, exactly as reported.[x]kept; untick and tick while open → taken and saved; tick, save, then untick back to the exact earlier text → taken; a canvas tick followed by a page-file re-read while the note still says[ ]→ kept; a Tasks tick on one item during an unsaved canvas tick on another → both kept, both saved[x].tests/view/ink-view-device-pages-ticks.test.ts(7, two fail onmain), andadoptTaskStateswith a base andticksDiffintests/recognition/task-index.test.ts.npm run gates: all 11 steps pass. Two reviewer rounds; their findings are fixed, except the one under Not verified.src/view/ink-view.ts's cap is up 13 lines (10210 → 10223) for the wiring: the pending ticks, the base, the own-text exception and a split import. The logic is intask-index.ts.Test on the device
not done) and tick the item there.Not verified
main.🤖 Generated with Claude Code