fix(tasks): Improve next task logic to be subtask-aware

This commit is contained in:
Eyal Toledano
2025-04-28 00:27:19 -04:00
parent e789e9bbf2
commit 0c08767830
4 changed files with 170 additions and 9505 deletions

View File

@@ -0,0 +1,10 @@
---
'task-master-ai': patch
---
- Improves next command to be subtask-aware
- The logic for determining the "next task" (findNextTask function, used by task-master next and the next_task MCP tool) has been significantly improved. Previously, it only considered top-level tasks, making its recommendation less useful when a parent task containing subtasks was already marked 'in-progress'.
- The updated logic now prioritizes finding the next available subtask within any 'in-progress' parent task, considering subtask dependencies and priority.
- If no suitable subtask is found within active parent tasks, it falls back to recommending the next eligible top-level task based on the original criteria (status, dependencies, priority).
This change makes the next command much more relevant and helpful during the implementation phase of complex tasks.