Closing agent chats causes git to revert or add changes

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When in agent layout i close a few of the chats, git shows in git chnages a pending change, even though i just reverted it via git’s revert changes button.

Steps to Reproduce

Work on some changes, have a clean git state, revert via source control tab, then close or archive chat

  • note, i tried to reproduce this again, but nothing happend, but i know its an issue, and the steps to reproduce are somewhere along those lines.

something is causing git to kinda revert things, and thats a bit scary as git is kinda the source of truth and its getting phantom changes yk

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.4.0-pre.14.patch.0 (Universal)
VSCode Version: 1.105.1
Commit: df9d3a169738a7aa907b4753b8a315582a6b54c0
Date: 2026-01-10T08:27:31.353Z
Build Type: Stable
Release Track: Nightly
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

For AI issues: add Request ID with privacy disabled

40ee751c-1678-40b6-8c30-19c4544c7fbe

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

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

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.

yeah it happens inconsistantly but it happens, its when i work on something, with an agent, revert the changes via source control tab (did not revert via checkpoints), then close the chat, changes will reappear

will try to get the screenshots over but its inconsistant tbh

Untitled document.pdf (113.2 KB) - Attached is console logs around the time when i committed, then closed a few chats, and then i see git showing changes from a really old chat’s changes i had reverted

steps to repro has been use chat to make changes, revert via source control tab not checkpoints, close the chat, it will like show those changes again that ive discarded already, the problem is this time this change i discarded was a day and a half ago

what can we do about this because in my opinion its a critical issue just because my workflow is using git as a source of truth in terms of staging the good/working code and discarding unwanted changes

I am open to a quick 5-10 min google meet call If that helps. The issue is its a bit difficult to consistently reproduce it, it sort of randomly appears/happens

I got the logs and details, I’ll pass them to the engineers.

One important point you mentioned is that changes from a chat from about 1,5 days ago come back after you close it. That’s different from the bugs we fixed in December. Back then, changes were lost when closing the chat. In your case, they reappear.

Thanks for the info you shared, it should be enough. If the engineers need anything else, I’ll reach out.

1 Like