From b37f6887558399c1296c35ff6997f5097439aa45 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Fri, 7 Feb 2025 12:11:14 -0800 Subject: [PATCH] Fix prompt responses --- src/core/Cline.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/Cline.ts b/src/core/Cline.ts index f6ae751837..fee138284d 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -1600,7 +1600,7 @@ export class Cline { const accessAllowed = this.clineIgnoreController.validateAccess(relPath) if (!accessAllowed) { await this.say("clineignore_error", relPath) - pushToolResult(formatResponse.clineIgnoreError(relPath)) + pushToolResult(formatResponse.toolError(formatResponse.clineIgnoreError(relPath))) await this.saveCheckpoint() break } @@ -1878,7 +1878,7 @@ export class Cline { const accessAllowed = this.clineIgnoreController.validateAccess(relPath) if (!accessAllowed) { await this.say("clineignore_error", relPath) - pushToolResult(formatResponse.clineIgnoreError(relPath)) + pushToolResult(formatResponse.toolError(formatResponse.clineIgnoreError(relPath))) await this.saveCheckpoint() break } @@ -2338,7 +2338,9 @@ export class Cline { const ignoredFileAttemptedToAccess = this.clineIgnoreController.validateCommand(command) if (ignoredFileAttemptedToAccess) { await this.say("clineignore_error", ignoredFileAttemptedToAccess) - pushToolResult(formatResponse.clineIgnoreError(ignoredFileAttemptedToAccess)) + pushToolResult( + formatResponse.toolError(formatResponse.clineIgnoreError(ignoredFileAttemptedToAccess)), + ) await this.saveCheckpoint() break }