diff --git a/src/core/tools/insertContentTool.ts b/src/core/tools/insertContentTool.ts index ce5d6310f5..185020e677 100644 --- a/src/core/tools/insertContentTool.ts +++ b/src/core/tools/insertContentTool.ts @@ -131,7 +131,7 @@ export async function insertContentTool( // For existing files, generate diff and check for changes diff = formatResponse.createPrettyPatch(relPath, fileContent, updatedContent) if (!diff) { - pushToolResult(t("tools:generic.noChanges", { path: relPath })) + pushToolResult(t("tools:noChanges", { path: relPath })) return } approvalContent = undefined @@ -165,7 +165,7 @@ export async function insertContentTool( if (!isPreventFocusDisruptionEnabled) { await cline.diffViewProvider.revertChanges() } - pushToolResult(t("tools:generic.changesRejected")) + pushToolResult(t("tools:changesRejected")) await cline.diffViewProvider.reset() return } diff --git a/src/i18n/locales/en/tools.json b/src/i18n/locales/en/tools.json index 6e294bf86a..4f24c6ae84 100644 --- a/src/i18n/locales/en/tools.json +++ b/src/i18n/locales/en/tools.json @@ -28,8 +28,6 @@ "noChanges": "No changes needed for '{{path}}'.", "changesRejected": "Changes were rejected by the user." }, - "noChanges": "No changes needed for '{{path}}'.", - "changesRejected": "Changes were rejected by the user.", "errors": { "toolCallError": "Tool call error: {{toolName}}", "toolExecutionError": "Tool execution error",