Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
Title: Support path resolution from file URIs in rule glob pattern matching
Description: When external tools (like ZED IDE) send file references via ACP (Additional Context Protocol) as file URIs (e.g., file:///path/to/admin.controller.spec.ts), Cursor’s rule engine cannot match them against glob patterns in project rules.
Current behavior:
Rules with globs: **/*.controller.spec.ts don’t load when the file is referenced as [ACP resource_link] admin.controller.spec.ts (file:///…)
Rules DO load when the file is referenced with full relative path: apps/admin.controller.spec.ts
Desired behavior: Cursor should extract and normalize the project-relative path from file URIs so glob patterns can match correctly, enabling seamless integration with external IDE plugins.
Impact: This would enable better IDE integration for tools like ZED that pass file context as URIs rather than relative paths.
Steps to Reproduce
install ZED IDE
Create a cursor rule that’s this YAML heder:
---
alwaysApply: false
globs: **/*.controller.spec.ts
---
use ZED AI chat to refernce a file and then ask what rules got loaded - you will see that applicable rules are not loaded
Expected Behavior
I expect acp to load rules based on files that agent reads and based on ACP resource_links provided
Additional ACP context:
[ACP resource_link] admin.controller.spec.ts (file:///code/worktrees/regal-heath/src/controllers/admin.controller.spec.ts)
[full file contents included]
Operating System
MacOS
Version Information
agent version - 2026.07.23-e383d2b
Does this stop you from using Cursor
Yes - Cursor is unusable