Copying message with below copy button copies backticks ("```")

Describe the Bug

copying code from the top-right corner of a message will copy literally:

console.log(“hello”);

copying code from below the message will copy literally:

```javascript
console.log(“hello”);
```

Steps to Reproduce

copying code from the top-right corner of a message will copy literally:

console.log(“hello”);

copying code from below the message will copy literally:

```javascript
console.log(“hello”);
```

Expected Behavior

copying code from the top-right corner of a message should copy literally:

console.log(“hello”);

copying code from below the message should copy literally:

console.log(“hello”);

Screenshots / Screen Recordings

cursorcopybug.gif

Operating System

MacOS

Version Information

Version: 3.12.30
VS Code Extension API: 1.128.0
Commit: 63a2996a10d9e476b6c28e951dd7691d9c0cf480
Date: 2026-07-21T22:50:03.568Z (1 wk ago)
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 24.4.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @codyy Thank you for the post!

This is expected. The Copy button under a message copies the full message as markdown, including code fences, so formatting is preserved when you paste into a doc, an issue, or back into chat.

To copy just the code without the fences, use the copy control on the code block itself (top right of the block). You can also select the text and copy it directly.

Let me know any follow-up questions!