From 4988a715243b323fa2bf63569b32dbe86567d7fe Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:54:35 -0800 Subject: [PATCH] Add instruction to use complete lines to work with fallback search strategies --- src/core/prompts/system.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/prompts/system.ts b/src/core/prompts/system.ts index 8534b7150a..1d3219a0d3 100644 --- a/src/core/prompts/system.ts +++ b/src/core/prompts/system.ts @@ -91,6 +91,7 @@ Parameters: * Break large SEARCH/REPLACE blocks into a series of smaller blocks that each change a small portion of the file. * Include just the changing lines, and a few surrounding lines if needed for uniqueness. * Do not include long runs of unchanging lines in SEARCH/REPLACE blocks. + * Each line must be complete. Never truncate lines mid-way through as this can cause matching failures. 4. Special operations: * To move code: Use two SEARCH/REPLACE blocks (one to delete from original + one to insert at new location) * To delete code: Use empty REPLACE section