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)
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).
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.