Skip to content

Cancelled tasks appear as incomplete in Calendar views #476

Closed

Description

@uNyanda
  • Date: 2026-07-25
  • Type: Bug
  • Severity: Minor

Environment

  • OS: Linux
  • WM: Niri
  • Compositor: Wayland
  • Software version: 2.18.0

Description

Tasks marked as Cancelled continue to appear as incomplete tasks in both the Calendar panel and the Calendar view in Tasks.

A cancelled task is no longer actionable, so it should not be displayed alongside active, incomplete tasks.

Steps to reproduce

  1. Create a task with a date.
  2. Mark the task as Cancelled.
  3. Open the Calendar panel with Leader+C.
  4. Observe that the task is marked as incomplete.
  5. Open Tasks with Ex command :tasks.
  6. Press 2 to switch to Calendar view.
  7. Observe that the task is marked as incomplete.

Expected Behaviour

Cancelled tasks should not be displayed as incomplete tasks in either the Calendar panel or the Calendar view in Tasks.

Actual Behaviour

Cancelled tasks are displayed as incomplete tasks in both the Calendar panel and Calendar view in Tasks, despite being marked as Cancelled.

Additional Notes

The Tasks list correctly groups cancelled tasks under Cancelled, so the issue appears to be specific to the calendar-related views.

Activity

  1. adibhanna commented on Jul 27, 2026

    @adibhanna
    Contributor

    Fixed in 3ed0411, on the v2.19.0 branch.

    You were right that it was specific to the calendar surfaces. Cancelled tasks were parsed correctly and the Tasks list has grouped them under Cancelled since #450, but both calendar helpers filtered on "is it checked" alone, so a - [-] task passed as not done and rendered with an empty checkbox next to actionable ones:

    • tasksDueOn — the Calendar panel's per-day lists and counts
    • bucketTasksByDueDate — the Tasks calendar's day badges, the selected day's list, and the No date strip

    The panel's month-grid "N open tasks" dot counted them as open too, which you'd have noticed next on any daily note holding a cancelled task.

    All three now share one predicate: open means not done and not cancelled. @waiting tasks still keep their date on the calendar (#236/#311), and undated cancelled tasks no longer pad the No date strip.

    Verified by driving the real desktop build with one task per state due today, plus a daily note holding an open and a cancelled task: the panel's day list goes from 5 rows to 3, its dot from "2 open tasks" to "1 open task", and the Tasks calendar's day badge from 5 to 3.

    One thing I deliberately left alone: a forwarded [>] task still shows on both calendars. Forwarding writes the copy from the task's token-stripped text, so the copy carries no due: date — hiding the origin would drop the task off the calendar entirely rather than move it to where it went. Making forwarding carry the due: token across and then dropping the origin is the right fix, but it changes forwarding's behaviour, so it wants its own issue. Shout if that one bites you as well.

    Thanks for the clear report, and for the repro steps down to the keystrokes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions