From 41b0ddecb4024db697c2e41a6eb71849c7741b9b Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 2 Mar 2025 00:02:09 -0500 Subject: [PATCH] Clearer instructions for read-only modes that can run commands --- .changeset/proud-melons-appear.md | 5 +++++ src/core/Cline.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/proud-melons-appear.md diff --git a/.changeset/proud-melons-appear.md b/.changeset/proud-melons-appear.md new file mode 100644 index 0000000000..fd2d8a3b5e --- /dev/null +++ b/.changeset/proud-melons-appear.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Support read-only modes that can run commands diff --git a/src/core/Cline.ts b/src/core/Cline.ts index f5e5dd9613..2b98f387b8 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -3334,7 +3334,7 @@ export class Cline { ) { const currentModeName = getModeBySlug(currentMode, customModes)?.name ?? currentMode const defaultModeName = getModeBySlug(defaultModeSlug, customModes)?.name ?? defaultModeSlug - details += `\n\nNOTE: You are currently in '${currentModeName}' mode which only allows read-only operations. To write files or execute commands, the user will need to switch to '${defaultModeName}' mode. Note that only the user can switch modes.` + details += `\n\nNOTE: You are currently in '${currentModeName}' mode, which does not allow write operations. To write files, the user will need to switch to a mode that supports file writing, such as '${defaultModeName}' mode.` } if (includeFileDetails) {