Hi Everyone,
I’m experiencing a serious issue when working on multiple Next.js projects in Cursor.
Even though I’ve clearly defined project-specific rules and ensured my root directory is correctly set, Cursor sometimes duplicates generated code or places it outside the intended root folder (e.g., into unrelated sibling folders). Worse, in a few cases, it even accidentally deleted my root project code during an automated cleanup or when attempting to fix errors.
This has happened repeatedly, and it’s quite exhausting and dangerous to project integrity. I want to understand:
- Is this a known bug or just an unintended behavior caused by LLM misinterpretation?
- Are there additional settings or precautions to ensure Cursor respects project boundaries and doesn’t touch unrelated directories?
- Can I fully disable auto-cleanup or generation outside root?
Any advice or clarification would be greatly appreciated.
Thank you!