Files become permanently read-only after AI edits - cannot modify own code-March 27"

Files I create myself become read-only after AI helps modify them. This is a serious bug - I can’t edit my own files anymore after using AI assistance, even after restarting Cursor. This started happening in recent versions and makes the editor unusable for normal development. Please fix the file permissions system so files remain editable by their creator

MacBook Pro M2 Max 96 GB - Sequoia 15.3.1

Begin happening 3/25/25 2:00 pst

Cursor doesnt set any permissions to files by itself. unless some command was executed to change permissions but that would have been listed in the chat as a command chmod ....

I had a similar issue when my Mac SSD had an issue. Restarting Mac fixed that.

Thank you! I will try that…

If it still doesnt work you can execute following command in terminal in Cursor

ls -la

Output would be something similar to

total 16
drwxr-xr-x 2 user group 4096 Mar 27 12:00 dir1
-rw-r--r-- 1 user group  123 Mar 27 12:00 file1.txt
-r--r--r-- 1 user group  456 Mar 27 12:00 file2.txt

The values on the left mean:

d = directory
r = read permission of the file/directory
w = write permission of the file/directory
x = execute permission of the file/directory

and it shows them 3 times because its
1 for the owner of the file (if user can read, write or execute file)
2 for the group of the owner of the file (if the group can read, write or execute file)
3 for anyone else who is not owner or group, if they can read write or execute file.

so if the files have r r r it can be read only since it doesnt have w for write permission.

1 Like

Thank you T1000… I was unable to copy the code to a new file either, but by restarting the computer, i was able to copy the code script to a new file and it became editable! The original file till won’t work, even though i have full admin rw permissions.
I feel this is solved! thanks again

1 Like

Sorry to say but the issues are getting worse. It is not my Mac OS, i’ve run a complete scan and my machine is error free and no malware or issues exist. The cursor Ai acknowledges my new issues, so I posted a NEW TOPIC ISSUE with other details.

PROBLEM SOLVED! See screenshots for the solution:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.