Skip to content

bug: naming a closed project with --project and --include-completed returns nothing, because the fold still applies #253

Closed

Description

@ryanlewis

Since #252, today --include-completed and anytime --include-completed fold a to-do closed inside a closed project into the project row, as logbook does. The fold is unconditional, so it also applies when I have named that closed project explicitly: things today --project "Launch v2" --include-completed returns an empty list, because every closed child is folded and a project row never matches on the parent join. The bare things --project <uuid> form works, and everywhere else in the code naming a closed project lifts the fold (closedProjectContents, show --agent).

Expected

An explicit --project naming a closed project lifts the fold on the --include-completed variants too, matching the rest of the CLI. This means plumbing the filter into the view's WHERE builder, which #240 is about to restructure, so do it after #240 lands.

Notes

Found by the review on #252, 10 Sep 2026.

Activity

  1. added
    bug
    on Sep 10, 2026
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

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions