File links in a .md plan do not open in preview mode, only in markdown mode. It seems it is a regression (similar issue already existed in the past, was fixed and now is coming back…)
Steps to Reproduce
Create a plan with the agent. The plan will contain links to certain files. I can open these links in markdown mode but not in preview mode
Expected Behavior
I expect the link to properly work (the linked file appears in editor window)
I’d like to pin down exactly which link shape fails in Preview, because Preview and the raw Markdown view resolve paths slightly differently. Could you try this:
Open the plan and switch it to Markdown (source) mode.
Find the line that links to LEGACY_UNUSED_GaugeConfigValidation.c.
Copy that whole link exactly as written, the text part, and paste it here.
Check in the Explorer whether that file exists at that path today, or whether the plan is proposing to create or rename it.
Let me know whether your workspace has one root folder or several, and whether the folder you opened in Cursor is the repo root.
In the meantime, Ctrl+P (Quick Open) with the file name, or Ctrl+click on the link in Markdown mode, will get you to the file.
Here is the link: [LEGACY_UNUSED_GaugeConfigValidation.c](file:///home/developer/projects/neo/neo_mqx_app/src/Configuration/LEGACY_UNUSED_GaugeConfigValidation.c)
This file exists in the project, there is no renaming involved. The link works fine when I click on it in Markdown mode, not in Preview mode. Same issue on all other links of this plan.
About the workspace question, I was in a workspace with several repos opened (neo_mqx_app is one of them). I tried to re-open the same .md plan in a different workspace, with only neo_mqx_app repo present, the same issue happen: I can open the links in Markdown mode, not in Preview mode.
I can see what is going on now. Your project lives on a Linux side (WSL or a remote SSH host), and the plan’s links are written as full file:// paths to that Linux filesystem. Preview mode currently treats a file:// link as a path on the Windows side of Cursor, looks for it there, does not find it, and offers to create it. Markdown mode resolves the same link on the remote side, which is why Ctrl+click works there.
Ctrl+click the link in Markdown mode, or use Ctrl+P with the file name.
For new plans, you can ask the agent to “link files using workspace-relative paths (for example src/Configuration/Foo.c), not file:// URLs”. Preview resolves relative links against your open folder correctly, including on WSL/SSH.
One quick question so I can pass on the exact setup: are you connected through WSL or through Remote SSH?
Yes it is a WSL setup. I will try your tip about asking the agent to handle links differently, thanks. And I hope Cursor will soon do it automatically.