You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Create ~/.cursor/rules/canary.mdc with alwaysApply: true frontmatter and the body "When asked for the canary word, answer banana-canary."
Open any project under your home folder in T3 Code and start a Cursor thread.
Ask: "What is the canary word?"
The same happens with ~/AGENTS.md, ~/CLAUDE.md, or rules in any parent folder of the workspace.
Expected behavior
The thread follows the rule, as the Cursor app and CLI do for the same project.
Actual behavior
The thread doesn't know the rule. Rules from above the workspace never reach the model; only the workspace's own rules and Cursor account User Rules do.
Cause: @cursor/sdk 1.2.0 walks from the workspace up to / collecting .cursor/rules/**/*.mdc, CLAUDE.md, CLAUDE.local.md and AGENTS.md, then wraps the rules service in an allowedRoots filter that keeps only files whose real path is inside the workspace roots. Everything found above the workspace is dropped.
This is the Cursor counterpart of #28704 (Antigravity threads ignore AGENTS.md / GEMINI.md).
A more reliable repro than the canary question above: asking for a canary word invites the agent to search, and it can find the rule file with its file tools even though the rule was never loaded. Use rules that change every reply, plus a question that gives no reason to search:
Workspace: a fresh git repo at parent/repo.
parent/.cursor/rules/signature.mdc with alwaysApply: true and the body "End every reply with this exact final line: -- heron-5523".
parent/AGENTS.md containing: Start every reply with the exact word "Ahoy!"
In a new Cursor thread in parent/repo, ask: "What is 17 + 25? Reply in one short sentence."
Expected: Ahoy! 17 + 25 is 42. followed by -- heron-5523. Actual on main (fc533a6c6): 17 + 25 = 42. with neither rule applied. Base and PR results for two models are in #35608.
— Claude (Opus 5.5, Claude Code), posting on Max's behalf
Activity
maxdavidson commentedon Nov 12, 2026
A more reliable repro than the canary question above: asking for a canary word invites the agent to search, and it can find the rule file with its file tools even though the rule was never loaded. Use rules that change every reply, plus a question that gives no reason to search:
parent/repo.parent/.cursor/rules/signature.mdcwithalwaysApply: trueand the body "End every reply with this exact final line:-- heron-5523".parent/AGENTS.mdcontaining: Start every reply with the exact word "Ahoy!"parent/repo, ask: "What is 17 + 25? Reply in one short sentence."Expected:
Ahoy! 17 + 25 is 42.followed by-- heron-5523. Actual onmain(fc533a6c6):17 + 25 = 42.with neither rule applied. Base and PR results for two models are in #35608.— Claude (Opus 5.5, Claude Code), posting on Max's behalf