diff --git a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap index cfec773b44..3e3fd8fc64 100644 --- a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap +++ b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap @@ -274,14 +274,18 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) Usage: Your question here -First suggestion -Action with mode switch + +Your suggested answer here + + +code +Implement the solution + @@ -289,12 +293,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + + + ## attempt_completion Description: After each tool use, the user will respond with the result of that tool use, i.e. if it succeeded or failed, along with any reasons for failure. Once you've received the results of tool uses and can confirm that the task is complete, use this tool to present the result of your work to the user. The user may respond with feedback if they are not satisfied with the result, which you can use to make improvements and try again. IMPORTANT NOTE: This tool CANNOT be used until you've confirmed from the user that any previous tool uses were successful. Failure to do so will result in code corruption and system failure. Before using this tool, you must ask yourself in tags if you've confirmed from the user that any previous tool uses were successful. If not, then DO NOT use this tool. diff --git a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/ask-mode-prompt.snap b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/ask-mode-prompt.snap index 0289fc2200..c90f1c1960 100644 --- a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/ask-mode-prompt.snap +++ b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/ask-mode-prompt.snap @@ -171,14 +171,18 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) Usage: Your question here -First suggestion -Action with mode switch + +Your suggested answer here + + +code +Implement the solution + @@ -186,12 +190,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + + + ## attempt_completion Description: After each tool use, the user will respond with the result of that tool use, i.e. if it succeeded or failed, along with any reasons for failure. Once you've received the results of tool uses and can confirm that the task is complete, use this tool to present the result of your work to the user. The user may respond with feedback if they are not satisfied with the result, which you can use to make improvements and try again. IMPORTANT NOTE: This tool CANNOT be used until you've confirmed from the user that any previous tool uses were successful. Failure to do so will result in code corruption and system failure. Before using this tool, you must ask yourself in tags if you've confirmed from the user that any previous tool uses were successful. If not, then DO NOT use this tool. diff --git a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap index f16c11a97f..c771afd282 100644 --- a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap +++ b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap @@ -273,14 +273,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -288,9 +301,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-enabled.snap b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-enabled.snap index 168dd87d59..09d67ade5b 100644 --- a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-enabled.snap +++ b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-enabled.snap @@ -323,14 +323,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -338,9 +351,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/partial-reads-enabled.snap b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/partial-reads-enabled.snap index bafff056b5..82d3ea1129 100644 --- a/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/partial-reads-enabled.snap +++ b/src/core/prompts/__tests__/__snapshots__/add-custom-instructions/partial-reads-enabled.snap @@ -279,14 +279,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -294,9 +307,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/consistent-system-prompt.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/consistent-system-prompt.snap index cfec773b44..1492fe22b6 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/consistent-system-prompt.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/consistent-system-prompt.snap @@ -274,14 +274,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -289,9 +302,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-computer-use-support.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-computer-use-support.snap index fb1fb5c77e..7db1eb9ce8 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-computer-use-support.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-computer-use-support.snap @@ -327,14 +327,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -342,9 +355,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-false.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-false.snap index cfec773b44..1492fe22b6 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-false.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-false.snap @@ -274,14 +274,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -289,9 +302,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-true.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-true.snap index 7c0108ff75..ab6b28e9bc 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-true.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-true.snap @@ -362,14 +362,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -377,9 +390,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-undefined.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-undefined.snap index cfec773b44..1492fe22b6 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-undefined.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-diff-enabled-undefined.snap @@ -274,14 +274,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -289,9 +302,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-different-viewport-size.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-different-viewport-size.snap index bf764fdf83..e1c5af3bd7 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-different-viewport-size.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-different-viewport-size.snap @@ -327,14 +327,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -342,9 +355,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-mcp-hub-provided.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-mcp-hub-provided.snap index 168dd87d59..09d67ade5b 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-mcp-hub-provided.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-mcp-hub-provided.snap @@ -323,14 +323,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -338,9 +351,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details + diff --git a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-undefined-mcp-hub.snap b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-undefined-mcp-hub.snap index cfec773b44..1492fe22b6 100644 --- a/src/core/prompts/__tests__/__snapshots__/system-prompt/with-undefined-mcp-hub.snap +++ b/src/core/prompts/__tests__/__snapshots__/system-prompt/with-undefined-mcp-hub.snap @@ -274,14 +274,27 @@ Description: Ask the user a question to gather additional information needed to Parameters: - question: (required) A clear, specific question addressing the information needed -- follow_up: (required) A list of 2-4 suggested answers, each in its own tag. Suggestions must be complete, actionable answers without placeholders. Optionally include mode attribute to switch modes (code/architect/etc.) - +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +- question: (required) The question to ask the user. This should be a clear, specific question that addresses the information you need. +- follow_up: (required) A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must: + 1. Be provided in its own tag + 2. Be specific, actionable, and directly related to the completed task + 3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses. + 4. Optionally include a element to switch to a specific mode when the suggestion is selected + - When using the mode element, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge Usage: Your question here -First suggestion -Action with mode switch +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) + +Your suggested answer here + + +code +Implement the solution + @@ -289,9 +302,35 @@ Example: What is the path to the frontend-config.json file? -./src/frontend-config.json -./config/frontend-config.json -./frontend-config.json + +./src/frontend-config.json + + +./config/frontend-config.json + + +./frontend-config.json + + + + +- question: (required) A clear, specific question addressing the information needed +- follow_up: (required) A list of 2-4 suggested answers, each in its own tag with nested element. Suggestions must be complete, actionable answers without placeholders. Optionally include element to switch modes (code/architect/etc.) +Example: Asking a question with mode switching options + +How would you like to proceed with this task? + + +code +Start implementing the solution + + +architect +Plan the architecture first + + +Continue with more details +