From b81541090411f5c37187778ce62fa68485cbcc02 Mon Sep 17 00:00:00 2001 From: Adam Biggs Date: Thu, 12 Feb 2026 16:58:13 -0800 Subject: [PATCH] fix(opencode): remove incorrect mode: primary and restore name field in templates (#1644) Remove hallucinated mode: primary from opencode-agent template - OpenCode defaults to mode: all and mode: primary does not enable Tab-switching as the original PR #1556 claimed. Restore the name frontmatter field across all OpenCode templates to match the standard pattern used by other IDEs. --- .../cli/installers/lib/ide/templates/combined/opencode-agent.md | 2 +- .../cli/installers/lib/ide/templates/combined/opencode-task.md | 2 ++ .../cli/installers/lib/ide/templates/combined/opencode-tool.md | 2 ++ .../lib/ide/templates/combined/opencode-workflow-yaml.md | 2 ++ .../installers/lib/ide/templates/combined/opencode-workflow.md | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md b/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md index 1102aa8a1..65f0a771d 100644 --- a/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md +++ b/tools/cli/installers/lib/ide/templates/combined/opencode-agent.md @@ -1,5 +1,5 @@ --- -mode: primary +name: '{{name}}' description: '{{description}}' --- diff --git a/tools/cli/installers/lib/ide/templates/combined/opencode-task.md b/tools/cli/installers/lib/ide/templates/combined/opencode-task.md index 155c135c4..98b3a5d77 100644 --- a/tools/cli/installers/lib/ide/templates/combined/opencode-task.md +++ b/tools/cli/installers/lib/ide/templates/combined/opencode-task.md @@ -1,10 +1,12 @@ --- +name: '{{name}}' description: '{{description}}' --- Execute the BMAD '{{name}}' task. TASK INSTRUCTIONS: + 1. LOAD the task file from {project-root}/{{bmadFolderName}}/{{path}} 2. READ its entire contents 3. FOLLOW every instruction precisely as specified diff --git a/tools/cli/installers/lib/ide/templates/combined/opencode-tool.md b/tools/cli/installers/lib/ide/templates/combined/opencode-tool.md index 505445253..1ae9c9ac8 100644 --- a/tools/cli/installers/lib/ide/templates/combined/opencode-tool.md +++ b/tools/cli/installers/lib/ide/templates/combined/opencode-tool.md @@ -1,10 +1,12 @@ --- +name: '{{name}}' description: '{{description}}' --- Execute the BMAD '{{name}}' tool. TOOL INSTRUCTIONS: + 1. LOAD the tool file from {project-root}/{{bmadFolderName}}/{{path}} 2. READ its entire contents 3. FOLLOW every instruction precisely as specified diff --git a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md index d1e2b0af2..a6f5cb96f 100644 --- a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md +++ b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md @@ -1,4 +1,5 @@ --- +name: '{{name}}' description: '{{description}}' --- @@ -7,6 +8,7 @@ Execute the BMAD '{{name}}' workflow. CRITICAL: You must load and follow the workflow definition exactly. WORKFLOW INSTRUCTIONS: + 1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}} 2. READ its entire contents 3. FOLLOW every step precisely as specified diff --git a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md index d1e2b0af2..a6f5cb96f 100644 --- a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md +++ b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md @@ -1,4 +1,5 @@ --- +name: '{{name}}' description: '{{description}}' --- @@ -7,6 +8,7 @@ Execute the BMAD '{{name}}' workflow. CRITICAL: You must load and follow the workflow definition exactly. WORKFLOW INSTRUCTIONS: + 1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}} 2. READ its entire contents 3. FOLLOW every step precisely as specified