From 46b31af330aa669d93c777d5fa577b2ca7c72225 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 11 Dec 2025 23:01:23 -0800 Subject: [PATCH 1/2] fix: clarify can't edit in parallel with itself either --- core/tools/definitions/editFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tools/definitions/editFile.ts b/core/tools/definitions/editFile.ts index 9ca5b6b63..55b3e08a7 100644 --- a/core/tools/definitions/editFile.ts +++ b/core/tools/definitions/editFile.ts @@ -8,7 +8,7 @@ export interface EditToolArgs { } export const NO_PARALLEL_TOOL_CALLING_INSTRUCTION = - "This tool CANNOT be called in parallel with other tools."; + "This tool CANNOT be called in parallel with other tools or itself. I.e., whenever you call this tool, it must be the only tool call."; const CHANGES_DESCRIPTION = "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'"; From 41c4f297f3bef3a43f12833d3d2e0d6c84888ec7 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 11 Dec 2025 23:01:45 -0800 Subject: [PATCH 2/2] fix: prompt tweak --- core/tools/definitions/editFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tools/definitions/editFile.ts b/core/tools/definitions/editFile.ts index 55b3e08a7..29b49c41c 100644 --- a/core/tools/definitions/editFile.ts +++ b/core/tools/definitions/editFile.ts @@ -8,7 +8,7 @@ export interface EditToolArgs { } export const NO_PARALLEL_TOOL_CALLING_INSTRUCTION = - "This tool CANNOT be called in parallel with other tools or itself. I.e., whenever you call this tool, it must be the only tool call."; + "This tool CANNOT be called in parallel with any other tools, including itself"; const CHANGES_DESCRIPTION = "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'";