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.
This commit is contained in:
Adam Biggs 2026-02-12 16:58:13 -08:00 committed by GitHub
parent c8ca083316
commit b815410904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
--- ---
mode: primary name: '{{name}}'
description: '{{description}}' description: '{{description}}'
--- ---

View File

@ -1,10 +1,12 @@
--- ---
name: '{{name}}'
description: '{{description}}' description: '{{description}}'
--- ---
Execute the BMAD '{{name}}' task. Execute the BMAD '{{name}}' task.
TASK INSTRUCTIONS: TASK INSTRUCTIONS:
1. LOAD the task file from {project-root}/{{bmadFolderName}}/{{path}} 1. LOAD the task file from {project-root}/{{bmadFolderName}}/{{path}}
2. READ its entire contents 2. READ its entire contents
3. FOLLOW every instruction precisely as specified 3. FOLLOW every instruction precisely as specified

View File

@ -1,10 +1,12 @@
--- ---
name: '{{name}}'
description: '{{description}}' description: '{{description}}'
--- ---
Execute the BMAD '{{name}}' tool. Execute the BMAD '{{name}}' tool.
TOOL INSTRUCTIONS: TOOL INSTRUCTIONS:
1. LOAD the tool file from {project-root}/{{bmadFolderName}}/{{path}} 1. LOAD the tool file from {project-root}/{{bmadFolderName}}/{{path}}
2. READ its entire contents 2. READ its entire contents
3. FOLLOW every instruction precisely as specified 3. FOLLOW every instruction precisely as specified

View File

@ -1,4 +1,5 @@
--- ---
name: '{{name}}'
description: '{{description}}' description: '{{description}}'
--- ---
@ -7,6 +8,7 @@ Execute the BMAD '{{name}}' workflow.
CRITICAL: You must load and follow the workflow definition exactly. CRITICAL: You must load and follow the workflow definition exactly.
WORKFLOW INSTRUCTIONS: WORKFLOW INSTRUCTIONS:
1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}} 1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}}
2. READ its entire contents 2. READ its entire contents
3. FOLLOW every step precisely as specified 3. FOLLOW every step precisely as specified

View File

@ -1,4 +1,5 @@
--- ---
name: '{{name}}'
description: '{{description}}' description: '{{description}}'
--- ---
@ -7,6 +8,7 @@ Execute the BMAD '{{name}}' workflow.
CRITICAL: You must load and follow the workflow definition exactly. CRITICAL: You must load and follow the workflow definition exactly.
WORKFLOW INSTRUCTIONS: WORKFLOW INSTRUCTIONS:
1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}} 1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}}
2. READ its entire contents 2. READ its entire contents
3. FOLLOW every step precisely as specified 3. FOLLOW every step precisely as specified