Changes Persist After Clearing Chat When Switching Branches

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After making changes and clearing the chat, switching to another Git branch restores the previously made changes. The expected behavior is that clearing the chat should not cause old changes to reappear when changing branches.

Steps to Reproduce

1.Make changes to files
2.Clear the chat
3.Switch to a different Git branch

Result: Changes from the previous branch reappear.

Expected Behavior

Each branch should reflect only its own file state.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43 (Universal)
VSCode Version: 1.105.1
Commit: 32cfbe848b35d9eb320980195985450f244b3030

Does this stop you from using Cursor

No - Cursor works, but with this issue

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.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.