Browse Source

Fix a bad search/replace when moving tools into their own files (#2815)

Matt Rubens 8 months ago
parent
commit
a244a9dc21

+ 1 - 1
src/core/tools/applyDiffTool.ts

@@ -193,7 +193,7 @@ export async function applyDiffTool(
 						)}\n</final_file_content>\n\n` +
 						`Please note:\n` +
 						`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
-						`2. Proceed with the task using cline updated file content as the new baseline.\n` +
+						`2. Proceed with the task using this updated file content as the new baseline.\n` +
 						`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
 						`${newProblemsMessage}`,
 				)

+ 1 - 1
src/core/tools/insertContentTool.ts

@@ -158,7 +158,7 @@ export async function insertContentTool(
 				`<final_file_content path="${relPath.toPosix()}">\n${finalContent}\n</final_file_content>\n\n` +
 				`Please note:\n` +
 				`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
-				`2. Proceed with the task using cline updated file content as the new baseline.\n` +
+				`2. Proceed with the task using this updated file content as the new baseline.\n` +
 				`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
 				`${newProblemsMessage}`,
 		)

+ 1 - 1
src/core/tools/searchAndReplaceTool.ts

@@ -170,7 +170,7 @@ export async function searchAndReplaceTool(
 						`<final_file_content path="${relPath.toPosix()}">\n${addLineNumbers(finalContent || "")}\n</final_file_content>\n\n` +
 						`Please note:\n` +
 						`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
-						`2. Proceed with the task using cline updated file content as the new baseline.\n` +
+						`2. Proceed with the task using this updated file content as the new baseline.\n` +
 						`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
 						`${newProblemsMessage}`,
 				)

+ 1 - 1
src/core/tools/writeToFileTool.ts

@@ -212,7 +212,7 @@ export async function writeToFileTool(
 						)}\n</final_file_content>\n\n` +
 						`Please note:\n` +
 						`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
-						`2. Proceed with the task using cline updated file content as the new baseline.\n` +
+						`2. Proceed with the task using this updated file content as the new baseline.\n` +
 						`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
 						`${newProblemsMessage}`,
 				)