You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove conditional language about tool availability in architect mode instructions
- Created getArchitectModeInstructions() function to generate different instructions based on enableTodoList setting
- When enabled: "Create a todo list using the update_todo_list tool"
- When disabled: "Document your plan in a clear, structured format"
- Updated getModeSelection() to conditionally apply these instructions for architect mode
- Modified system prompt generation to pass settings to mode selection
- Addresses issue where conditional language about tool availability created confusion when feature is disabled
Fixes inconsistency raised in PR #5624 comment by @daniel-lxs
"1. Do some information gathering (using provided tools) to get more context about the task.\n\n2. You should also ask the user clarifying questions to get a better understanding of the task.\n\n3. Once you've gained more context about the user's request, break down the task into clear, actionable steps. If the `update_todo_list` tool is available, create a todo list using it. Each todo item should be:\n - Specific and actionable\n - Listed in logical execution order\n - Focused on a single, well-defined outcome\n - Clear enough that another mode could execute it independently\n\n4. As you gather more information or discover new requirements, update your planning to reflect the current understanding of what needs to be accomplished.\n\n5. Ask the user if they are pleased with this plan, or if they would like to make any changes. Think of this as a brainstorming session where you can discuss the task and refine your approach.\n\n6. Include Mermaid diagrams if they help clarify complex workflows or system architecture. Please avoid using double quotes (\"\") and parentheses () inside square brackets ([]) in Mermaid diagrams, as this can cause parsing errors.\n\n7. Use the switch_mode tool to request that the user switch to another mode to implement the solution.\n\n**IMPORTANT: Focus on creating clear, actionable plans rather than lengthy markdown documents. Use structured planning to track and organize the work that needs to be done.**",
75
+
"1. Do some information gathering (using provided tools) to get more context about the task.\n\n2. You should also ask the user clarifying questions to get a better understanding of the task.\n\n3. Once you've gained more context about the user's request, break down the task into clear, actionable steps. Create a todo list using the update_todo_list tool. Each todo item should be:\n - Specific and actionable\n - Listed in logical execution order\n - Focused on a single, well-defined outcome\n - Clear enough that another mode could execute it independently\n\n4. As you gather more information or discover new requirements, update your planning to reflect the current understanding of what needs to be accomplished.\n\n5. Ask the user if they are pleased with this plan, or if they would like to make any changes. Think of this as a brainstorming session where you can discuss the task and refine your approach.\n\n6. Include Mermaid diagrams if they help clarify complex workflows or system architecture. Please avoid using double quotes (\"\") and parentheses () inside square brackets ([]) in Mermaid diagrams, as this can cause parsing errors.\n\n7. Use the switch_mode tool to request that the user switch to another mode to implement the solution.\n\n**IMPORTANT: Focus on creating clear, actionable plans rather than lengthy markdown documents. Use structured planning to track and organize the work that needs to be done.**",
76
76
},
77
77
{
78
78
slug: "code",
@@ -186,7 +186,12 @@ export function findModeBySlug(slug: string, modes: readonly ModeConfig[] | unde
186
186
* If no custom mode is found, the built-in mode is used with partial merging from promptComponent.
constbaseInstructions=`1. Do some information gathering (using provided tools) to get more context about the task.
231
+
232
+
2. You should also ask the user clarifying questions to get a better understanding of the task.
233
+
234
+
3. Once you've gained more context about the user's request, break down the task into clear, actionable steps.`
235
+
236
+
consttodoListInstructions=enableTodoList
237
+
? ` Create a todo list using the update_todo_list tool. Each todo item should be:
238
+
- Specific and actionable
239
+
- Listed in logical execution order
240
+
- Focused on a single, well-defined outcome
241
+
- Clear enough that another mode could execute it independently`
242
+
: ` Document your plan in a clear, structured format. Each step should be:
243
+
- Specific and actionable
244
+
- Listed in logical execution order
245
+
- Focused on a single, well-defined outcome
246
+
- Clear enough that another mode could execute it independently`
247
+
248
+
constremainingInstructions=`
249
+
250
+
4. As you gather more information or discover new requirements, update your planning to reflect the current understanding of what needs to be accomplished.
251
+
252
+
5. Ask the user if they are pleased with this plan, or if they would like to make any changes. Think of this as a brainstorming session where you can discuss the task and refine your approach.
253
+
254
+
6. Include Mermaid diagrams if they help clarify complex workflows or system architecture. Please avoid using double quotes ("") and parentheses () inside square brackets ([]) in Mermaid diagrams, as this can cause parsing errors.
255
+
256
+
7. Use the switch_mode tool to request that the user switch to another mode to implement the solution.
257
+
258
+
**IMPORTANT: Focus on creating clear, actionable plans rather than lengthy markdown documents. Use structured planning to track and organize the work that needs to be done.**`
0 commit comments