sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.71k stars 297 forks source link

bug: The application regenerates the annotation content, removes the code, and only displays the annotation information #5206

Open HangLu123 opened 2 months ago

HangLu123 commented 2 months ago

Version

latest

Describe the bug

1、Select a piece of code, click the "Document Code" button, and generate code comments. image

2、Click the "Edit & Retry" button, regenerate the comment information, and notice that the generated comment information is located below the code. image

3、Click the "Accept" button, apply the comment information, and notice that it will remove the code, displaying only the comment information. image

Expected behavior

image Just change the content of the comment.

Additional context

No response