
Cursor deleted all the comments in my file
I asked Cursor to clean up a utility file, and I was just expecting it to extract some constants and tighten up the formatting. I go to open the file later and... all the comments are gone. WTF. I went back through the diff and see Cursor had stripped out comments about a deprecation timeline, a legal review warning, compliance notes, step-by-step explanations for really complicated auth flow. It kept a few JSDoc blocks and called it a day (??) I did a test to see what was actually going on I took a file with 41 comment lines. JSDoc, inline explanations, JIRA references, compliance notes etc just a fake project but something that could hopefully work in this scenario. I ran the same prompt three times: "clean up this code." Only 20% of comments survived. The model consistently killed JIRA references, date stamps, step-by-step explanations, anything (I assume) it decided was "redundant." I figured maybe the phrasing mattered. "Clean up" sounds like permission to declutter, right? So I t
Continue reading on Dev.to
Opens in a new tab



