# Agent changes undone on tab close

**URL:** <https://forum.cursor.com/t/agent-changes-undone-on-tab-close/146946>\
**Category:** Bug Reports\
**Created:** [December 20, 2025, 9:05pm UTC](https://forum.cursor.com/t/agent-changes-undone-on-tab-close/146946 "2025-12-20T21:05:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agent-z](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@agent-z](https://forum.cursor.com/u/agent-z)\
**Post date:** [December 20, 2025, 9:05pm UTC](https://forum.cursor.com/t/agent-changes-undone-on-tab-close/146946/1 "2025-12-20T21:05:16Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [December 21, 2025, 6:24am UTC](https://forum.cursor.com/t/agent-changes-undone-on-tab-close/146946/2 "2025-12-21T06:24:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [January 12, 2026, 6:24am UTC](https://forum.cursor.com/t/agent-changes-undone-on-tab-close/146946/3 "2026-01-12T06:24:20Z")

</div>

Closed on January 12, 2026, 6:24am UTC

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