Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When the workspace path contains a curly apostrophe ’ (U+2019), Cursor’s file writing tools normalize it to a straight apostrophe ’ (U+0027), creating a duplicate directory instead of writing to the existing one.
This causes Cursor to mess up in the following ways:
- Write/StrReplace tools report success
- Read tool reads from the original directory
- Files are written to the new directory
- As usage continues, the directories could conflict more and more
Result: Read and Write are out of sync, edits appear to succeed but don’t persist
Steps to Reproduce
- Have a directory with a curly apostrophe in the name (e.g., Person’s Directory)
- Open a project inside that directory in Cursor
- Use Agent mode to create/edit files
Expected Behavior
Changes should be made to the existing directory without creating a new one.
Operating System
MacOS
Version Information
IDE Version: 2.6.21
For AI issues: which model did you use?
Opus 4.5
Does this stop you from using Cursor
No - Cursor works, but with this issue