Cody writes duplicate code

Often times when I ask Cody to generate some inline code on an empty line, it generates the code along with part of my existing code. I have to copy the relevant part and Reject the suggestion in order to clean it up. Ideally this shouldn’t be the case.

In the example below the Trash dropdown item is a duplicate of the one I already have written before:

1 Like