Incorrect File Staging in Working Tree UI

Description:

When attempting to stage specific lines using the Working Tree UI, Cursor incorrectly stages a different file instead of the selected lines.

Steps to Reproduce:

  1. Open Working Tree UI

  2. Select specific lines to stage in a file

  3. Click to stage the selected lines

  4. Check Git status

Expected Behavior:

Only the selected lines from the chosen file should be staged.

Actual Behavior:

A completely different file gets staged instead of the selected lines.

Environment:

  • Cursor Version: 0.42.2
  • VSCode Version: 1.93.1
  • OS: ios
  • git version 2.39.3 (Apple Git-146)