AI circomventing rules

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The Agent prompt to delete a file, I press Reject.
Then the Agent uses command line to remove the file anyway

Steps to Reproduce

Guess it’s just random bad luck?

Expected Behavior

When rejecting something, don’t find other ways to do it anyway.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.5.9 (user setup)
VSCode Version: 1.99.3
Commit: de327274300c6f38ec9f4240d11e82c3b0660b20
Date: 2025-08-30T21:02:27.236Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

No - Cursor works, but with this issue

a96dad38-2051-4712-b7b2-d43ac25f7fef

Oh, and, not that I think it has anything to do with it, but Cursor was running in debug mode at the time. As in the Actual Cursor IDE application itself. Not the “Run and Debug” feature.

Hey, thanks for the report. You can try enabling this file deletion prevention option in Cursor settings. Use the shortcut Cmd/Ctrl + Shift + J, and in the Chat tab under the Auto-Run section, enable it.

This doesn’t change the fact that the agent ignored the user interaction and circumvented without asking why.

No, that’s just Python programming in Cursor. It always makes new scripts and deletes the old ones instead of refactoring like it does in many other languages or frameworks.

it is was on at that time, and still is.

That’s why it originally asked for permission, no?

Yes, unfortunately, if the model decides to delete a file, it will find a way to do so. Which model are you using?

Auto, so can’t say for sure, but I included the request id a96dad38-2051-4712-b7b2-d43ac25f7fef

1 Like

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