mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Merge pull request #1304 from RooVetGit/support_read_only_modes_that_can_run_commands
Clearer instructions for read-only modes that can run commands
This commit is contained in:
commit
11387bdecd
2 changed files with 6 additions and 1 deletions
5
.changeset/proud-melons-appear.md
Normal file
5
.changeset/proud-melons-appear.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Support read-only modes that can run commands
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue