Compare commits

...

2 Commits

Author SHA1 Message Date
Saoud Rizwan 502c3b785a Create wise-dolphins-itch.md 2025-03-31 18:33:29 -07:00
Saoud Rizwan fdbc2c6d84 Escape html content for gemini when running commands 2025-03-31 18:32:51 -07:00
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Escape html content for gemini when running commands
+6 -1
View File
@@ -2312,7 +2312,7 @@ export class Task {
}
}
case "execute_command": {
const command: string | undefined = block.params.command
let command: string | undefined = block.params.command
const requiresApprovalRaw: string | undefined = block.params.requires_approval
const requiresApproval = requiresApprovalRaw?.toLowerCase() === "true"
@@ -2348,6 +2348,11 @@ export class Task {
}
this.consecutiveMistakeCount = 0
// gemini models tend to use unescaped html entities in commands
if (this.api.getModel().id.includes("gemini")) {
command = fixModelHtmlEscaping(command)
}
const ignoredFileAttemptedToAccess = this.clineIgnoreController.validateCommand(command)
if (ignoredFileAttemptedToAccess) {
await this.say("clineignore_error", ignoredFileAttemptedToAccess)