Cursor Able to Edit Staged Files

Describe the Bug

In the IDE, usually when you stage a file’s changes and view them, you are no edit to edit it by design. However when prompting an LLM via Ctrl+K (only way I have discovered so far) it is able to edit the staged files. This doesn’t have any consequences, as it becomes as if the changes the LLM made were already staged, but it doesn’t seem as intended behavior.

Steps to Reproduce

Stage a file with changes, open it via the source control GUI, press Ctrl+K and tell cursor to edit something in the staged file view.

Expected Behavior

Some error or the inability to edit staged files.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90

Does this stop you from using Cursor

No - Cursor works, but with this issue