From 8cde6c27087f401d085fe267091ae75334309d96 Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Mon, 16 Jun 2025 10:32:34 +0200 Subject: [PATCH 1/2] fix(contextGatherer): cannot read properties of undefined reading forEach (#789) --- .changeset/rotten-months-brake.md | 5 +++++ scripts/modules/utils/contextGatherer.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/rotten-months-brake.md 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/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)) ); From 636fb3f680ff246a39cd164dc28632dd05a3f3d8 Mon Sep 17 00:00:00 2001 From: Bartu OZEL Date: Mon, 16 Jun 2025 21:12:54 +0300 Subject: [PATCH 2/2] docs: Update configuration.md (#782) --- docs/configuration.md | 1 - 1 file changed, 1 deletion(-) 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.