Bug 引用代码到输入框后,再输入,再复制文本进去,撤回会把前面的文字撤回,复制的无法撤回,顺序不对 mac 最新版本系统和cursor

# Full English Translation (Bug Report Standard Tone)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I quote code into the input box, type some text afterward, then paste another copied block of text into the box, undoing via keyboard shortcut deletes earlier text incorrectly. The pasted content cannot be undone properly, and the undo sequence is out of order. This issue occurs on the latest macOS system and the newest Cursor version, as well as Cursor’s latest Agents feature on Windows chat input boxes.

Steps to Reproduce

  1. In the input box, use Command+L to insert quoted code
  2. Type descriptive text after the code snippet
  3. Paste an additional copied block of code into the input field
  4. Press Command + Z to undo
    Result: The middle content gets removed first, newly added text undoes in the wrong chronological order

Operating System

macOS

Version Information

macOS: 26.5.2 (25F84)
Cursor Version: 3.9.16
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Build Timestamp: 2026-06-27T06:41:01.941Z
UI Layout: glass
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 Platform: Darwin arm64 25.5.0

Does this stop you from using Cursor

Sometimes — I am still able to use Cursor most of the time

Hi,

Thanks for posting on the Cursor forum!

To help ensure most of our users can participate in discussions, this forum is currently English only.

If you’d like, you can edit your post to translate it into English. Once it meets our guidelines, it will be automatically relisted.

Thanks for understanding!

Note: This is an automated detection system and sometimes makes mistakes. If your post is already in English, feel free to ignore this message, or just make a small edit and it will be reviewed again.

Indeed, that is something I experience myself too (the post was flagged because not in english, but it’s a real concern)