# Closing agent chats causes git to revert or add changes

**URL:** <https://forum.cursor.com/t/closing-agent-chats-causes-git-to-revert-or-add-changes/148500>\
**Category:** Bug Reports\
**Tags:** checkpoints, chat\
**Created:** [January 10, 2026, 4:33pm UTC](https://forum.cursor.com/t/closing-agent-chats-causes-git-to-revert-or-add-changes/148500 "2026-01-10T16:33:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [January 10, 2026, 5:13pm UTC](https://forum.cursor.com/t/closing-agent-chats-causes-git-to-revert-or-add-changes/148500/3 "2026-01-10T17:13:03Z")

</div>

Hey, thanks for the report. This looks like a known issue. The team recently fixed a few bugs related to automatic rollbacks when closing agent chats (in December 2025).

Since you’re on a nightly build (2.4.0-pre.14.patch.0), this could be a regression or an edge case. A similar issue was discussed here: [Cursor randomly reverts code without consent... recurring](https://forum.cursor.com/t/cursor-randomly-reverts-code-without-consent-recurring/146976)

Can you try to reproduce it and share:

- Exact steps to reproduce reliably
- A screenshot of the Source Control panel before and after closing the chat
- Whether the agent had any active checkpoints at the moment you closed the chat

This will help the engineers understand what’s going on.

---

_[View the full topic](https://forum.cursor.com/t/closing-agent-chats-causes-git-to-revert-or-add-changes/148500)._
