Allow users to clear out custom instructions for the built-in modes

This commit is contained in:
Matt Rubens 2025-02-11 18:00:00 -05:00
parent e39b006330
commit 9e5c6b170c
2 changed files with 6 additions and 1 deletions

View file

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

View file

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