diff --git a/.changeset/rotten-months-brake.md b/.changeset/rotten-months-brake.md new file mode 100644 index 00000000..6d72979b --- /dev/null +++ b/.changeset/rotten-months-brake.md @@ -0,0 +1,5 @@ +--- +"task-master-ai": patch +--- + +Fix contextGatherer bug when adding a task `Cannot read properties of undefined (reading 'forEach')` diff --git a/docs/configuration.md b/docs/configuration.md index e32b9e5d..77b5c228 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -2,7 +2,6 @@ Taskmaster uses two primary methods for configuration: -1. **`.taskmaster/config.json` File (Recommended - New Structure)** 1. **`.taskmaster/config.json` File (Recommended - New Structure)** - This JSON file stores most configuration settings, including AI model selections, parameters, logging levels, and project defaults. diff --git a/scripts/modules/utils/contextGatherer.js b/scripts/modules/utils/contextGatherer.js index 29721858..1a826dec 100644 --- a/scripts/modules/utils/contextGatherer.js +++ b/scripts/modules/utils/contextGatherer.js @@ -123,7 +123,7 @@ export class ContextGatherer { // Dependency Graph Analysis if (dependencyTasks.length > 0) { - const dependencyResults = this._buildDependencyContext(dependencyTasks); + const dependencyResults = this._buildDependencyGraphs(dependencyTasks); dependencyResults.allRelatedTaskIds.forEach((id) => finalTaskIds.add(String(id)) );