.cursorignore not excluding files from the @ context

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I have files ignored by cursor using .cursorignore in the root of my project. cursor shows a :prohibited:by them in the file window with a tool tip showing they’re ignored by cursor.

When I use an @ in chat, I still see them in the autocomplete list. If I select one, nothing is added to the chat window.

The docs says these files should be excluded. Ignore files | Cursor Docs

Steps to Reproduce

add files to .cursorignore
verify that they’re ignored in the file window.
in the agent chat type @.
The ignored file shouldn’t be in the list, but is.

Expected Behavior

ignored files shouldn’t show in the @ context list in an agent chat.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.38 (user setup)
VSCode Version: 1.99.3
Commit: fe5d1728063e86edeeda5bebd2c8e14bf4d0f960
Date: 2025-10-06T18:18:58.523Z
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.26100

For AI issues: which model did you use?

sonnet 4.5 thinking

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. We’ll check this.

One extra step that may or may not be needed is that the files that should be ignored were originally in a folder that wasn’t ignored.

I have a /tasks folder with the current work that I’m doing. When I finish the work, I move all the files to /tasks/archive which is ignored with a tasks/archive/**/*.

1 Like

Thanks for the extra info. We’ll check it.

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