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
This commit is contained in:
Matt Rubens 2025-02-11 18:54:15 -05:00 committed by GitHub
commit 75f4a6ce10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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(),
})
}
}}