Changes Persist After Clearing Chat When Switching Branches

Hey, thanks for the report. This is a known issue, a few users have reported similar bugs with file sync and Git status:

The team is working on a fix. Some workarounds that may help:

  1. Close and reopen the chat
  2. Restart Cursor after switching branches
  3. Try copying the whole file Cmd+A, Cmd+C, undo the changes Cmd+Z, then paste it back Cmd+V. This clears the stuck state.

For investigation, could you share:

  • A screenshot of the changed files list after switching branches
  • The Request ID from the latest agent run (chat context menu > Copy Request ID)
  • Are you using Agent mode when this happens?

Let me know if the workarounds helped.