"Generate commit message" generates a message for the entire file, not just the staged portion

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

“Generate commit message” generates a message for the entire file, not just the staged portion.

Steps to Reproduce

  1. Make a change on two different lines of the file.
  2. Stage one of the two lines.
  3. Generate a commit message.
  4. The commit message will contain information about all changes in the file, not just those intended for the current commit.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43 (system setup)
VSCode Version: 1.105.1
Commit: 32cfbe848b35d9eb320980195985450f244b3030
Date: 2025-12-19T06:06:44.644Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.22631

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is an interesting issue. It looks like the commit message generator is analyzing all changes in the file, not just the staged part.

Could you clarify a few details?

  1. Are you using git add -p for partial staging, or the Source Control UI in Cursor?
  2. Can you share an example of what message was generated vs what you expected?
  3. Did you try reproducing it with a simple test file (for example, change 2 lines and stage only 1)?

If you can confirm the repro steps, I’ll pass it to the team to investigate.


Here, only ‘Game’ is staged, and only in one scene.

1 Like