Skip to content

fix: ignore literal due dates inside tag arguments - #304

Merged
vycdev merged 4 commits into
vycdev:developfrom
vycdev2:fix/ignore-literal-due-arguments
Nov 6, 2026
Merged

vycdev merged 4 commits into
vycdev:developfrom
vycdev2:fix/ignore-literal-due-arguments

Conversation

@vycdev2

@vycdev2 vycdev2 commented Nov 4, 2026 •

Copy link
Copy Markdown

Summary

  • Read only outer task tags when collecting dates for the Todo Due sidebar; an @due(...) example inside another tag argument no longer creates a false due task or overrides a real due tag.
  • Color only outer @due(...) tags in Todo files, so the editor no longer shows an example inside another tag (or inside inline code) as overdue, today, or soon while the sidebar ignores it. Markdown notes already worked this way.
  • Add regression coverage and a changelog entry.

Verification

  • npm run typecheck — passed.
  • npm test — passed (983 tests).
  • npm run compile — passed.
  • npm run format:check — passed.
  • git diff --check — passed.
  • Regression test failed against the untouched source before the fix.

Risk

  • Low: reuses the existing outer-tag parser already used by Markdown Due tasks and other Todo features.

Review follow-up

  • Added the editor-color change above (Document.getTagsDue); the incremental decorator uses the same method. A new test fails without it.
  • Rechecked: pnpm run typecheck, pnpm test (984 passing), pnpm run compile, and pnpm run format:check all pass.
  • Behavior change: in an unclosed tag such as @bug(note @due(2026-07-04), the due tag counts as part of the argument, matching tag groups and planned windows.

This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.

🤖 Generated with Claude Code

vycdev2 and others added 4 commits November 4, 2026 01:07
5.4.0 is already released, so the fix belongs in a new unreleased
patch section instead of the shipped release notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Due sidebar now ignores @Due(...) inside another tag's argument, but
Todo files still colored those examples as overdue, today, or soon. Color
only outer due tags, as Markdown notes already do, so the editor and the
sidebar agree. Due examples in inline code are skipped the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vycdev
vycdev merged commit 2244f3c into vycdev:develop Nov 6, 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