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)