From 707ed723815899121a53111d08cf7e179374d47a Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Fri, 24 Oct 2025 12:14:49 -0500 Subject: [PATCH] adjust edit tool multiple matches error wording (#3418) --- packages/opencode/src/tool/edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/tool/edit.ts b/packages/opencode/src/tool/edit.ts index c761801a..c35f8969 100644 --- a/packages/opencode/src/tool/edit.ts +++ b/packages/opencode/src/tool/edit.ts @@ -621,6 +621,6 @@ export function replace(content: string, oldString: string, newString: string, r throw new Error("oldString not found in content") } throw new Error( - "oldString found multiple times and requires more code context to uniquely identify the intended match", + "Found multiple matches for oldString. Include more surrounding code lines in oldString to uniquely identify which occurrence to replace.", ) }