Model attempts to edit hallucinated filepaths

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Model will attempt to edit files with broken filenames, say at

/project/project-name-name/file.ext

When the real path is

/project/project-name/file.ext

It throws up a request to edit file, with only the final ‘file.ext’ part. You have to hover over the filename to see a tooltip, which due to this being caused by hallucination, looks correct, but is subtly wrong. I’ve seen it off by a single character, by dropping a character and by repeating a suffix.

“External-File Protection” is enabled, so this shouldn’t be happening.

Steps to Reproduce

Get the model to edit a filename, sometimes it doesn’t work.

Expected Behavior

File edits for files that don’t exist should be automatically denied regardless of “External-File Protection”, since it’s certainly an error.
File edits outside the workspace should be automatically denied when “External-File Protection” is enabled.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.17
VSCode Version: 1.99.3
Commit: 34881053400013f38e2354f1479c88c9067039a0
Date: 2025-09-29T03:10:26.099Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

GPT-5

For AI issues: add Request ID with privacy disabled

Due to policy I can’t provide this, but this should be fixable with better tooling.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Thanks for the report, I’ve passed it on to the team.