fix(contextGathere): cannot read properties of undefined reading forEach

This commit is contained in:
Ralph Khreish
2025-06-16 11:26:05 +03:00
parent 46d4f273f5
commit c24d313564
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"task-master-ai": patch
---
Fix contextGatherer bug when adding a task `Cannot read properties of undefined (reading 'forEach')`

View File

@@ -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))
);