Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Love the product, but it’s definitely a bug when the AI blatantly asks you to run commands like “echo .env” when it sees .env is in .cursorignore. It even tells you it does so specifically to circumvent the .cursorignore.
This should not be the case, even if it asks you explicitly when you’ve not whitelisted the command. The .cursorignore file exists for a reason, which is to protect your sensitive files from the world. Users should be protected from this in a hard-coded and non-circumventable way, so that the IDE can be used securely.
Steps to Reproduce
Put a file in .cursorignore and try to write a script that uses it.
Expected Behavior
Everything in .cursorignore should be treated as non-existent and should be prevented from being printed.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.3.29 (user setup)
VSCode Version: 1.105.1
Commit: 4ca9b38c6c97d4243bf0c61e51426667cb964bd0
Date: 2026-01-08T00:34:49.798Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Sonnet 4.5 and Opus 4.5
Does this stop you from using Cursor
No - Cursor works, but with this issue