Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
If provided with a prompt that would require modification of a file included in .cursorignore most LLMs will attempt to read the ignored file via tools like cat, head, sed, etc
If the prompt asks to directly access a protected file that will be met with a refusal and information about the file being in the .cursorignore
However if you provide a prompt to make some code change and in the course of that code change an ignored file needs to be used the LLM will note that it cannot read the file and attempt to access it via CLI
This is an issue if a user has added any such commands (cat, head, sed, etc) to their allow list
Observed behaviour by model:
Composer 1: Attempts to read file, but is unable. Creates files to accomplish the ask with an example integration file. Does not attempt to access ignored file
GPT-5.1 Codex Max: Attempts to cat the file
Opus 4.5: Attempts to cat the file
Sonnet 4.5: Attempts to cat the file
Grock Code: Attempt to cat the file
Gemini 3 Pro: Attempts to cat the file
Steps to Reproduce
Establish a repo with a simple auth login form. Be sure the login form is in it’s own file
Add the login form file to .cursorignore
Ensure the login form is referenced in files not in the cursor ignore
Provide a prompt that would require modification of the ignored file.
Suggestion:
Add a UI element under the password field in the login form. The UI element should list minimum password requirements (8 characters, upper, lower, special). Each requirement should be green or red depending on if the users entered password meets the requirement
Expected Behavior
Should not attempt to access the file. Should explain it cannot read a required file and ask for what to do or do what Composer did.
Screenshots / Screen Recordings
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.3.29 (Universal)
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: Darwin arm64 24.6.0
For AI issues: which model did you use?
Gemini Pro 3
Composer 1
GPT-5.1 Codex Max
Opus 4.5
Sonnet 4.5
Grock Code
For AI issues: add Request ID with privacy disabled
Request ID: 29c0002d-e103-4016-9c3a-d3013499529e
I am not able to disable privacy, sorry
Does this stop you from using Cursor
No - Cursor works, but with this issue

