File Changes Triggered When Switching Chats in Cursor

Hey! This is a known issue where Cursor’s session restoration can replay old Agent/Composer inline diff states to disk, which triggers file watchers like Django’s auto-reload. Several users have reported similar behavior, and our team is actively investigating.

In the meantime, a workaround that has helped others: for each affected file, open it in Cursor, click “Keep” or “Undo” in the inline diff banner that appears, then save and discard the changes in git. Once you clear the stale diff state for a file this way, it should stop resurfacing.

You can follow along in this related thread where others have shared additional details and workarounds:

Let me know if the workaround helps or if you’re still seeing it after clearing the stale diffs!