Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When I close an agent window or restart cursor (even after I have committed any changes and clicked accept changes) the changes from the closed agent window are undone from my code base.
Steps to Reproduce
Make changes with an agent
Commit the changes
Git status → nothing to commit, working tree clean
Close the agent window
Git status → recently modified files re-appear
Check the diff → all agent changes have been undone for last agent session
Expected Behavior
Agent window closes and code is not modified
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.3.0-pre.15.patch.0 (Universal)
VSCode Version: 1.105.1
Commit: ed0cd13706630239be71994d9d745f78d34cf150
Date: 2025-12-17T04:27:24.957Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.5.0
For AI issues: which model did you use?
Composer 1 & Opus 4.5
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor