# Rollback doesn’t restore previous chat state and files remain in Git Changes

**URL:** <https://forum.cursor.com/t/rollback-doesn-t-restore-previous-chat-state-and-files-remain-in-git-changes/170624>\
**Category:** Bug Reports\
**Tags:** checkpoints, chat\
**Created:** [September 4, 2026, 6:08pm UTC](https://forum.cursor.com/t/rollback-doesn-t-restore-previous-chat-state-and-files-remain-in-git-changes/170624 "2026-09-04T18:08:05Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [September 7, 2026, 7:42am UTC](https://forum.cursor.com/t/rollback-doesn-t-restore-previous-chat-state-and-files-remain-in-git-changes/170624/9 "2026-09-07T07:42:24Z")

</div>

Hey @AcidDiz,

A restore only reverts files the agent edited with its own edit tools. Anything a terminal command, a subagent, or you changed by hand stays under Changes, and `.ipynb` files aren’t restored. It reverts files only, not the chat, which is why the earlier message just becomes editable. ([Checkpoints docs](https://cursor.com/docs/agent/chat/checkpoints).)

If files the agent itself edited are staying behind, next time it happens grab this before anything else: Help → Toggle Developer Tools → Console, click Restore Checkpoint, filter for `[composer]`, and paste the lines plus the file names that stayed. `No original file state found` or an error line tells us exactly what happened.

Reliable fallback meanwhile: commit before an agent session. To clear leftovers, `git checkout -- <file>` or `git stash` discards them — those throw away the uncommitted changes, so check the file list first.

---

_[View the full topic](https://forum.cursor.com/t/rollback-doesn-t-restore-previous-chat-state-and-files-remain-in-git-changes/170624)._
