From 1734b67b0559acb27ae43a1d520c8a8454e943e7 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Fri, 5 Sep 2025 16:19:35 -0600 Subject: [PATCH] fix: align error strings with unit tests (insertContent/attemptCompletion/executeCommand); keep i18n generic noChanges/changesRejected --- src/core/tools/attemptCompletionTool.ts | 5 ++++- src/core/tools/executeCommandTool.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/tools/attemptCompletionTool.ts b/src/core/tools/attemptCompletionTool.ts index 0d5400ebff..36228999c1 100644 --- a/src/core/tools/attemptCompletionTool.ts +++ b/src/core/tools/attemptCompletionTool.ts @@ -45,7 +45,10 @@ export async function attemptCompletionTool( cline.recordToolError("attempt_completion") pushToolResult( - formatResponse.toolError(t("tools:attemptCompletion.errors.incompleteTodos"), "attempt_completion"), + formatResponse.toolError( + "Cannot complete task while there are incomplete todos. Please complete all todos before attempting completion.", + "attempt_completion", + ), ) return diff --git a/src/core/tools/executeCommandTool.ts b/src/core/tools/executeCommandTool.ts index 4367075259..d29aaa7c33 100644 --- a/src/core/tools/executeCommandTool.ts +++ b/src/core/tools/executeCommandTool.ts @@ -175,7 +175,7 @@ export async function executeCommand( try { await fs.access(workingDir) } catch (error) { - return [false, t("tools:executeCommand.workingDirMissing", { workingDir })] + return [false, `Working directory '${workingDir}' does not exist.`] } let message: { text?: string; images?: string[] } | undefined