Rule file with alwaysApply enabled not added automatically

Issue

Rule file with alwaysApply: true isn’t automatically added into all requests. To fix the issue, I have to configure globs instead.

Info

Cursor version: 0.50.4
OS: Mac
Environment: Xcode project

Description

Whenever I create a rule file with alwaysApply: true, it’s not automatically added to all requests, which should be the desired behavior.

When creating a chat, the UI doesn’t show that the file is being used. Moreover, when asked about it, the AI answers that it wasn’t provided with any rule file.

To fix the issue, I have to set it to false and rely on globs instead, then the UI shows the rules were loaded and the AI recognizes them.

Neither of the following works:

---
description: Instance Swift
globs: *.swift
alwaysApply: true
---
---
description: Instance Swift
globs: 
alwaysApply: true
---

While this works:

---
description: Instance Swift
globs: *.swift
alwaysApply: false
---

Scenarios

I tested a bunch of scenarios with different alwaysApply values and globs configured or not.

Scenario 1

Both rule files with alwaysApply: false and globs configured.

Here, you can see that the chat correctly displays both rule files applied when working with a file in the testing folder.

When asked the question which rules file are you using for this chat? List them all, the AI recognizes both rule files :white_check_mark::white_check_mark:.

Scenario 2

1st with alwaysApply: true and globs configured. 2nd with alwaysApply: false and globs configured.

Here, you can see that the chat displays only the 2nd rule file, meaning that setting alwaysApply: true with globs doesn’t work.

When asked the question which rules file are you using for this chat? List them all, the AI recognizes only the 2nd rule file :cross_mark::white_check_mark:.

Scenario 3

1st with alwaysApply: true and globs configured. 2nd with alwaysApply: true and globs NOT configured.

Here, you can see that the chat doesn’t display any rule file, meaning that setting alwaysApply: true doesn’t work with or without globs.

When asked the question which rules file are you using for this chat? List them all, the AI fails to recognize both rule files :cross_mark::cross_mark:.

Conclusion

It seems that using alwaysApply = true doesn’t work as expected, and the workaround is to rely on globs instead.

Is anyone experiencing the same issue? What’s the fix for this?