File-specific rules not applied for .tsx context in prompt submission

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’ve configured specific rules to apply only to *.ts and *.tsx files. However, when I add a .tsx file to the context and submit a prompt, the context info tooltip only shows the “Always apply” rules. The file-specific rules that should apply to .tsx files are not displayed or enforced.

Steps to Reproduce

  1. Define rules scoped to *.ts and *.tsx files.
  2. Add a .tsx file to the context.
  3. Submit a prompt.
  4. Observe the context tooltip — only “Always apply” rules appear.

Expected Behavior

When a .tsx file is in context, the tooltip should include both the “Always apply” rules and the rules defined for *.tsx files.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.34
VSCode Version: 1.99.3
Commit: 45fd70f3fe72037444ba35c9e51ce86a1977ac10
Date: 2025-10-29T06:51:29.202Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0

For AI issues: which model did you use?

gpt-5-codex

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. I tested on version 2.0.40, file‑specific rules with glob patterns work correctly for me.

Clarification: rules with alwaysApply: false and glob patterns are conditional, they don’t always appear in Active Rules because they’re only included when specific conditions are met. This is expected behavior.

You’re on v2.0.34, and there may have been fixes since then. Please update to the latest version (2.0.40).

If the issue persists after updating:

  • Share a Request ID from a chat where you expected the rule to apply (three dots menu → Debug info)
  • Try a different model (claude sonnet instead of gpt-5-codex)

Let me know if updating resolves it.

Okay, I had a wrong expectation. I assumed that the context tooltip shows which rules are already in the context, but it only shows which rules are applied, when I reference a file.

When adding a *.tsx file to the chat input, I correctly see the conditional rule applied.