.cursorignore doesn't respect ! filter

Describe the Bug

my .cursorignore file is

*
!db/
!pom.xml

But now I find pom.xml is enabled by cursor tab, files under db still ignored.

Steps to Reproduce

  1. create a folder
  2. in this floder create a sub directory named db
  3. in this db directory, create a file named test.txt. so we have a db/test.txt file
  4. add below to .cursorignore
*
!db/
  1. check if db/test.txt is ignored by cursor tab

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.49.6 (user setup)
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T04:49:20.797Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, that’s quite strange. Have you tried removing the line from the rules instead of excluding it with ! ? Try restarting Cursor as well. Everything works as expected for me in the new version of Cursor, so maybe you should update?