Agent changes undone on tab close

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

Hey, thanks for the report.

This is a known issue. If you close a chat tab without explicitly accepting the changes, Cursor may revert them. A fix was implemented recently, but you’re on a pre-release build (2.3.0-pre.15), so it might not be included yet.

Could you confirm:

  1. Did you click “Accept All” (the checkmark button) in the Review panel before closing the chat tab?
  2. If yes, could you share a Request ID from one of those sessions? (Chat top-right menu > Copy Request ID)

If you explicitly accepted the changes and committed them, but they still reverted, that’s likely a different bug we should investigate further.

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