fix: change apply prompt to not remove comments (#8608)

This commit is contained in:
Aditya Mitra 2025-11-06 23:55:07 +05:30 • committed by GitHub
parent 0a630fb307
commit 495abc11db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.`;
};