Skip to content

Commit 11387bd

Browse files
authored
Merge pull request RooCodeInc#1304 from RooVetGit/support_read_only_modes_that_can_run_commands
Clearer instructions for read-only modes that can run commands
2 parents 15a4c4c + 41b0dde commit 11387bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/proud-melons-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Support read-only modes that can run commands

src/core/Cline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3334,7 +3334,7 @@ export class Cline {
33343334
) {
33353335
const currentModeName = getModeBySlug(currentMode, customModes)?.name ?? currentMode
33363336
const defaultModeName = getModeBySlug(defaultModeSlug, customModes)?.name ?? defaultModeSlug
3337-
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.`
3337+
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.`
33383338
}
33393339

33403340
if (includeFileDetails) {

0 commit comments

Comments
 (0)