Просмотр исходного кода

Merge pull request #952 from RooVetGit/allow_emptying_out_built_in_custom_instructions

Allow users to clear out custom instructions for the built-in modes
Matt Rubens 10 месяцев назад
Родитель
Сommit
75f4a6ce10

+ 5 - 0
.changeset/orange-geese-provide.md

@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Allow users to clear out custom instructions for the built-in modes

+ 1 - 1
webview-ui/src/components/prompts/PromptsView.tsx

@@ -804,7 +804,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
 									const existingPrompt = customModePrompts?.[mode] as PromptComponent
 									updateAgentPrompt(mode, {
 										...existingPrompt,
-										customInstructions: value.trim() || undefined,
+										customInstructions: value.trim(),
 									})
 								}
 							}}