cody icon indicating copy to clipboard operation
cody copied to clipboard

bug: LLMs love to delete comments

Open endolith opened this issue 6 months ago • 3 comments

Version

v1.30.1

Describe the bug

LLMs love to delete source code comments when revising source code (even comments that they wrote in previous responses), which makes merging changes more tedious.

Expected behavior

It should suggest snippets of code that fit neatly into the existing file without requiring a bunch of comment re-inclusions

Additional context

Can the system message be modified to discourage it from deleting comments?

endolith avatar Aug 09 '24 12:08 endolith