diff --git a/.changeset/fix-tag-complexity-detection.md b/.changeset/fix-tag-complexity-detection.md new file mode 100644 index 00000000..4c74d978 --- /dev/null +++ b/.changeset/fix-tag-complexity-detection.md @@ -0,0 +1,7 @@ +--- +"task-master-ai": patch +--- + +Fix tag-specific complexity report detection in expand command + +The expand command now correctly finds and uses tag-specific complexity reports (e.g., `task-complexity-report_feature-xyz.json`) when operating in a tag context. Previously, it would always look for the generic `task-complexity-report.json` file due to a default value in the CLI option definition. \ No newline at end of file diff --git a/scripts/modules/commands.js b/scripts/modules/commands.js index 5a2d9023..48a284c6 100644 --- a/scripts/modules/commands.js +++ b/scripts/modules/commands.js @@ -1564,8 +1564,8 @@ function registerCommands(programInstance) { ) // Allow file override .option( '-cr, --complexity-report ', - 'Path to the report file', - COMPLEXITY_REPORT_FILE + 'Path to the complexity report file (use this to specify the complexity report, not --file)' + // Removed default value to allow tag-specific auto-detection ) .option('--tag ', 'Specify tag context for task operations') .action(async (options) => {