From 495abc11db9b84414150787eee5e1e8abdd636de Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Thu, 6 Nov 2025 23:55:07 +0530 Subject: [PATCH] fix: change apply prompt to not remove comments (#8608) --- core/llm/templates/edit/gpt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/templates/edit/gpt.ts b/core/llm/templates/edit/gpt.ts index bafad3f3b..02f1894e8 100644 --- a/core/llm/templates/edit/gpt.ts +++ b/core/llm/templates/edit/gpt.ts @@ -76,5 +76,5 @@ export const defaultApplyPrompt: PromptTemplateFunction = ( history, otherData, ) => { - return `${otherData.original_code}\n\nThe following code was suggested as an edit:\n\`\`\`\n${otherData.new_code}\n\`\`\`\nPlease apply it to the previous code.`; + return `${otherData.original_code}\n\nThe following code was suggested as an edit:\n\`\`\`\n${otherData.new_code}\n\`\`\`\nPlease apply it to the previous code. Do not change comments unless explicitly requested.`; };