Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
After using Cursor Agent mode on a large legacy .NET solution, reopening old Agent chats causes Cursor.exe to automatically rewrite many source files without explicit user action.
Symptoms observed:
- ProcMon shows Cursor.exe performing WriteFile operations against source files
- File timestamps updated immediately after opening old chats
- CRLF/LF normalization behavior
- Hebrew characters sometimes replaced with question marks
- “Inline diffs have been suppressed for recent changes because there are too many to display”
- Some rewrites occur even when Git shows no textual diff afterward
The issue is specifically tied to reopening/restoring old Agent chats/sessions.
Deleting state.vscdb and allowing Cursor to create a fresh one stops the issue until old chats are restored again.
This strongly suggests a problem related to Agent checkpoint/session replay or stale pending edit state.
Steps to Reproduce
- Use Cursor Agent mode to modify files in a large .NET solution
- Close Cursor
- Restore an older state.vscdb (or reopen Cursor with previous Agent chats restored)
- Reopen Cursor
- Cursor automatically restores the last active Agent chat
- Open/select one of the old Agent chats
- Observe Cursor.exe immediately issuing WriteFile operations against many source files (confirmed via ProcMon)
Expected Behavior
Opening or restoring old Agent chats should never rewrite source files unless the user explicitly applies edits.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 3.5.17 (system setup)
VSCode Version: 1.105.1
Commit: d5b2fc092e16007956c9e5047f76097b9e626ca0
Date: 2026-05-20T02:43:31.559Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Composer / Agent mode
For AI issues: add Request ID with privacy disabled
N/A
Additional Information
Additional findings:
-
The issue reproduces even when launching Cursor with:
Cursor.exe --disable-extensions -
Git often shows no textual diff afterward, suggesting Cursor may be rewriting equivalent content, changing BOM/encoding/line-ending metadata, or replaying normalization writes.
-
Removing:
AppData\Roaming\Cursor\User\globalStorage\anysphere.cursor-commits
and deleting:
state.vscdb
stopped the issue until old chats were restored again. -
The repository contains mixed encodings, CRLF-sensitive files, and non-English (Hebrew) text.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
