Skip to content

fix: run tag filtering after --start-at-task gate#384

Merged
josegonzalez merged 1 commit into
mainfrom
315-bug-tag-filtering-runs-before-start-at-task-and-can-silently-no-op-the-run
Jul 16, 2026
Merged

fix: run tag filtering after --start-at-task gate#384
josegonzalez merged 1 commit into
mainfrom
315-bug-tag-filtering-runs-before-start-at-task-and-can-silently-no-op-the-run

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

Tag filtering ran before the --start-at-task gate, the reverse of the order documented in the flag help and command reference (--start-at-task selects first, then --tags/--skip-tags). When the --start-at-task target was itself excluded by the tag filter, it was removed before the gate could resume, so the started flag never flipped, every surviving task printed [skipped] (before --start-at-task), and the run exited 0 having changed nothing.

With tasks first [tags: x], second [tags: y], third [tags: x] and docket apply --start-at-task second --tags x, the documented order selects second and third, then narrows by tags to run third. The run now does this: the resume point is selected first and tags narrow the survivors, so a target excluded by tags still establishes the resume point without running itself.

Closes #315.

Tag filtering previously ran before the `--start-at-task` gate, so a `--start-at-task` target excluded by `--tags`/`--skip-tags` was removed before the gate could resume, leaving every surviving task skipped as `before --start-at-task` and the run exiting 0 having changed nothing. Tags now narrow the survivors after the resume point is selected, matching the filter order documented in the flag help and command reference.
@josegonzalez
josegonzalez merged commit 430e60c into main Jul 16, 2026
14 checks passed
@josegonzalez
josegonzalez deleted the 315-bug-tag-filtering-runs-before-start-at-task-and-can-silently-no-op-the-run branch July 16, 2026 16:58
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: tag filtering runs before --start-at-task and can silently no-op the run

1 participant