# .cursorignore not excluding files from the @ context

**URL:** <https://forum.cursor.com/t/cursorignore-not-excluding-files-from-the-context/136551>\
**Category:** Bug Reports\
**Created:** [October 7, 2025, 10:03pm UTC](https://forum.cursor.com/t/cursorignore-not-excluding-files-from-the-context/136551 "2025-10-07T22:03:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMetRev](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DMetRev](https://forum.cursor.com/u/DMetRev)\
**Post date:** [October 7, 2025, 10:03pm UTC](https://forum.cursor.com/t/cursorignore-not-excluding-files-from-the-context/136551/1 "2025-10-07T22:03:02Z")

</div>

### 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 🚫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](https://cursor.com/docs/context/ignore-files)

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 8, 2025, 4:36am UTC](https://forum.cursor.com/t/cursorignore-not-excluding-files-from-the-context/136551/2 "2025-10-08T04:36:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DMetRev](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DMetRev](https://forum.cursor.com/u/DMetRev)\
**Post date:** [October 8, 2025, 11:08am UTC](https://forum.cursor.com/t/cursorignore-not-excluding-files-from-the-context/136551/4 "2025-10-08T11:08:04Z")

</div>

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/**/*`.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 8, 2025, 11:11am UTC](https://forum.cursor.com/t/cursorignore-not-excluding-files-from-the-context/136551/5 "2025-10-08T11:11:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [October 30, 2025, 11:12am UTC](https://forum.cursor.com/t/cursorignore-not-excluding-files-from-the-context/136551/6 "2025-10-30T11:12:25Z")

</div>

Closed on October 30, 2025, 11:12am UTC

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