From 9e5c6b170c906e0938911a9d070138b302b7fcdd Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Tue, 11 Feb 2025 18:00:00 -0500 Subject: [PATCH] Allow users to clear out custom instructions for the built-in modes --- .changeset/orange-geese-provide.md | 5 +++++ webview-ui/src/components/prompts/PromptsView.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/orange-geese-provide.md diff --git a/.changeset/orange-geese-provide.md b/.changeset/orange-geese-provide.md new file mode 100644 index 0000000000..7a4354e84d --- /dev/null +++ b/.changeset/orange-geese-provide.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Allow users to clear out custom instructions for the built-in modes diff --git a/webview-ui/src/components/prompts/PromptsView.tsx b/webview-ui/src/components/prompts/PromptsView.tsx index 06cfb65135..8b46e488ae 100644 --- a/webview-ui/src/components/prompts/PromptsView.tsx +++ b/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(), }) } }}