cody icon indicating copy to clipboard operation
cody copied to clipboard

Unexpected empty code block in the response

Open 6ea83e85cfe2749d5e61 opened this issue 10 months ago • 2 comments

Version

1.80.1

Describe the bug

When code contains backticks, unpaired three backticks (actually it's expected to be "unpaired", because they are not the begin of codeblock) in the LLM's response body may result in an empty code block at the end of the response.

See the attachment

Image

Expected behavior

Should not contain empty code blocks

Additional context

No response

6ea83e85cfe2749d5e61 avatar Mar 30 '25 23:03 6ea83e85cfe2749d5e61