Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The AI assistant in Cursor is not consistently reading or following rules
defined in the .cursorrules file. For example:
- Rules explicitly state to use Inertia router methods instead of fetch()
- Assistant violated this rule multiple times despite the rule being clearly
documented - This causes runtime errors (419 CSRF errors) and requires manual fixes
Expected Behavior:
- Assistant should read .cursorrules at the start of each session/task
- Assistant should validate its proposed changes against .cursorrules
- Assistant should refuse to make changes that violate established rules
Actual Behavior:
- Assistant makes changes without checking .cursorrules
- Assistant violates explicit rules that are clearly documented
- Requires user intervention to catch and fix violations
Steps to Reproduce
See above.
Rules created in .cursorrules but ignored, rule was
CRITICAL: Always Use Inertia Router Methods
NEVER use raw fetch() for POST/PUT/DELETE requests. Always use Inertia router methods.
CORRECT:
router.post(url, data, options)- for POST requestsrouter.put(url, data, options)- for PUT requestsrouter.delete(url, options)- for DELETE requestsrouter.get(url, data, options)- for GET requestsrouter.patch(url, data, options)- for PATCH requests
INCORRECT:
fetch(url, { method: 'POST' })- will cause 419 CSRF errorsaxios.post(url, data)- not used in this project- Any direct fetch without CSRF token handling
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.1.50
VSCode Version: 1.105.1
Commit: 56f0a83df8e9eb48585fcc4858a9440db4cc7770
Date: 2025-12-06T23:39:52.834Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.14.0-37-generic
Does this stop you from using Cursor
No - Cursor works, but with this issue