Incorrect flow with pending changes

Hi,

Given situation where:

  1. Agent made changes to my code
  2. I do not immediately accept changes, i review touched lines as well as other parts of the code
  3. I decide to change untouched lines myself first before accepting what cursor did
  4. My changes appear as agent changes (red/green highlight) which is already annoying on its own but i can live with that
  5. I proceed to accept my own lines but now cursor decided to jump to another file/part of the code so i have to move back which is extremely disruptive for my workflow

I think solution here would be to not highlight user made changes when there are already agent pending changes. Could be just my odd workflow but it feels like cursors bad UX

Hey, thanks for the report. We want to reproduce it.

Can you share:

  • Short video with steps 1-5 and the jump moment
  • Cursor version and OS (Help > About)
  • Agent mode/model used
  • Request ID from chat (chat context menu > Copy Request ID)
  • Errors from Help > Toggle Developer Tools > Console

Meanwhile try:

  • Close file tab and reopen - does highlighting stay?
  • Temp workaround: delete highlighted lines, save, then Undo
  • If that helps - rename file, reopen project, rename back (see similar: Stuck with changes i cannot accept)

Related confirmation UI bug already in Linear: 2.0.48: Edit Confirmation UI Unresponsive. If you share repro and logs, I’ll create a separate ticket for your auto-jump case. Let me know if this helps.

It’s not really unexpected bug, its the way the flow is designed but i don’t think its correct.
This is in assistant mode or whatever you call it not full vibe coding.

  1. Ask cursor to do some changes to a file (wait for it to finish)
  2. In the modified file with pending changes to accept modify another line of code that hasn’t been changed by the agent
  3. My change appears as if agent changed it with accept and undo