Inconsistent "whole line" behaviors in Chat composer

Describe the Bug

A few issues when using (MacOS) keyboard shortcuts in the Chat composer:

  • Pressing cmd + Backspace to delete characters to the left on the current line, ends up deleting the entire previous line as well.
  • Pressing cmd + Backspace on an empty line does nothing.
  • Pressing cmd + RightArrow to go to end of line, if cursor is immediately after an inline context reference (e.g. @some_file), ends up going to the end of the entire input instead. Same for cmd + LeftArrow, goes to start of entire input.

Steps to Reproduce

(images/videos in thread comments below)

cmd + Backspace deletes too much

  1. Type three lines of input.
  2. Move cursor to middle of third line.
  3. Press cmd + Backspace
  4. Entire second line is deleted, in addition to part of the third line.
  5. (Bonus) Pressing cmd + z restores the second line, suggesting the extra deletion was actually an extra separate operation.
  6. Pressing cmd + z again restores deleted part of the third line.

cmd + Backspace on empty line

  1. Type one line of input and shift + Enter to add a new empty line.
  2. Pressing cmd + Backspace does nothing.
  3. (Bonus) Pressing cmd + z does nothing two times, suggesting the no-op was actually two extra separate operations.
  4. Pressing cmd + z a third time does undo whatever came beforehand, in this case the creation of the new empty line.

cmd + RightArrow jumps too far when at inline context reference

  1. Type two lines of input, with an inline context reference in the first line.
  2. Move cursor to immediately after the inline context reference. (Note that the vertical line cursor is actually slightly lower than when it’s at normal text, suggesting perhaps a different text editing mode.)
  3. Pressing cmd + RightArrow jumps to the end of the entire input.

Expected Behavior

  • Pressing cmd + Backspace (on non-empty line) should only delete characters to the left on the current line.
  • Pressing cmd + Backspace on an empty line should delete the newline and move the cursor to the end of the previous line.
  • Pressing cmd + RightArrow should move cursor to the end of line, regardless of the inline context reference.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (Universal)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Uploading multiple images/videos is limited, so here they are as comments:

Hey, thanks for the report, we’ll look into it.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.