Cursor creates path=app directory instead of editing existing file

Version: Cursor 0.49.5

Issue:
When applying changes, Cursor sometimes creates a new directory named path=app and puts the file inside it, instead of editing the existing file.
Example:

  • Expected to edit app/components/Box.tsx
  • Instead, a new file path=app/components/Box.tsx is created.

Expected:
Edits should apply directly to the correct existing file.

1 Like

Facing this issue as well. Any solutions?