From b7682d809eeceb895f4ce83b2acea84ea1a692dc Mon Sep 17 00:00:00 2001 From: jheyworth <8269695+jheyworth@users.noreply.github.com> Date: Mon, 9 Feb 2026 00:54:19 +0000 Subject: [PATCH] fix: guard against missing workflow-file in bmad-help.csv entries Skip entries where workflow-file is empty/undefined to prevent workflowFile.endsWith() from throwing during prompt generation. Co-Authored-By: Claude Opus 4.6 --- tools/cli/installers/lib/ide/github-copilot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cli/installers/lib/ide/github-copilot.js b/tools/cli/installers/lib/ide/github-copilot.js index a8781087c..196e30453 100644 --- a/tools/cli/installers/lib/ide/github-copilot.js +++ b/tools/cli/installers/lib/ide/github-copilot.js @@ -227,6 +227,7 @@ You must fully embody this agent's persona and follow all activation instruction if (!command) continue; // Skip entries without a command (tech-writer commands have no command column) const workflowFile = entry['workflow-file']; + if (!workflowFile) continue; // Skip entries with no workflow file path const promptContent = this.createWorkflowPromptContent(entry, workflowFile); const promptPath = path.join(promptsDir, `${command}.prompt.md`); await this.writeFile(promptPath, promptContent);