fix: align error strings with unit tests (insertContent/attemptCompletion/executeCommand); keep i18n generic noChanges/changesRejected

This commit is contained in:
Hannes Rudolph 2025-09-05 16:19:35 -06:00
parent d900b770a0
commit 1734b67b05
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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