File citation truncates paths at spaces, producing non-clickable links for filenames with spaces

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

File citation truncates paths at spaces, producing non-clickable links for filenames with spaces

Steps to Reproduce

  1. Create a project with 2 files: “some_file.md” and “some file.md”
  2. Add text “som_text” to both files
  3. Ask an agent to find all ‘some_text’ occurrences and cite them
  4. Find that some_file.md is cited correctly and the link is clickable (both filename in text and in citation header), but link to “some file.md” is truncated to “some” at the header and is not clickable.

Expected Behavior

Correct links to files with spaces at name in agent window

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.7.27
VS Code Extension API: 1.105.1
Commit: e48ee6102a199492b0c9964699bf011886708ba0
Date: 2026-06-10T01:46:16.942Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report with the screenshot and steps, it really helped. I was able to reproduce it. The issue is with how the chat renders file links. If the filename has a space, the link gets cut off at the first space and stops being clickable, while filenames without spaces like some_file.md work fine. This is a bug on our side, and I’ve reported it internally.

Search and quoting work correctly, only the link clickability is affected. As a temporary workaround, please avoid spaces in filenames when possible, use an underscore or hyphen instead.

I can’t share an ETA for a fix yet. If there’s an update, I’ll reply in the thread.