Skip to content

Commit

Permalink
Clearer instructions for read-only modes that can run commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubens committed Mar 2, 2025
1 parent 6ff8838 commit debed29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Cline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 allows write operations. To write files, the user will need to switch to another mode that allows write operations, such as '${defaultModeName}' mode.`
}

if (includeFileDetails) {
Expand Down

0 comments on commit debed29

Please sign in to comment.