Description
After restarting Windsurf, changes that have already been committed to Git are displayed again as "Uncommitted changes". When the user rejects these changes (assuming they are already saved), the changes are reverted from the Git repository.
Steps to Reproduce
Cascade makes changes to multiple files
User accepts the changes
User commits the changes to Git
User closes Windsurf
User reopens Windsurf with the same project
Windsurf displays the already committed changes again as "Uncommitted changes"
User rejects the changes (thinking they are already committed)
Result: Files are reverted to the state before the commit
Expected Behavior
Already committed changes should not be displayed again as "Uncommitted changes"
Or: The dialog should clearly indicate that these changes already exist in the Git repository
Actual Behavior
Committed changes are displayed again after IDE restart
Rejecting the changes reverts the files to the old state (before the commit)
This leads to data loss and an inconsistent repository state
Impact
Critical - Causes unexpected data loss of already saved changes
Environment
OS: Windows
IDE: Windsurf
Date: February 4/5, 2026