Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When running sub-agents, Cursor IDE ignores rules. In my case, I have strict rules about using pnpm and never using npm. Regardless, sub-agents insist on attempting to run npm commands. If they ran pnpm they would be auto-allowed commands that could just work.
Steps to Reproduce
Occured using a Gemini 3 Pro prompt that spun up sub-agents to run testing.
Expected Behavior
Sub-agents should be strictly following the same rules and restrictions as regular agents, always, no exceptions.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 2.4.28 (user setup)
VSCode Version: 1.105.1
Commit: f3f5cec40024283013878b50c4f9be4002e0b580
Date: 2026-02-03T00:56:18.293Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Gemini 3 Pro
Additional Information
NOTE: In attached screenshot, I had to manually click into the sub agent and CHANGE npm to pnpm.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
