You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[regression] Any links (file references) in the VS Code extension chat are not working, regardless of their format. #17649
bugSomething isn't workingextensionIssues related to the VS Code extensionregressionBehaviors that worked in previous versions but were broken due to an updatewindows-osIssues related to Codex on Windows systems
Absolutely any links to local machine files stopped working after one of the April updates to codex extension.
Screencast:
PowerToys_2026-04-13--17-19-09--367.mp4
What steps can reproduce the bug?
Create a file: C:\Users\XXX\Desktop\codex-tmp\foo\bar.md and open C:\Users\XXX\Desktop\codex-tmp in VS Code
Ask Codex to produce a response with this output:
Using the workspace file at `C:\Users\XXX\Desktop\codex-tmp\foo\bar.md`.
**Absolute**-[bar.md:1](/c:/Users/XXX/Desktop/codex-tmp/foo/bar.md#L1)-[bar.md](/c:/Users/XXX/Desktop/codex-tmp/foo/bar.md)-[bar.md:1](file:///C:/Users/XXX/Desktop/codex-tmp/foo/bar.md#L1)-[bar.md](file:///C:/Users/XXX/Desktop/codex-tmp/foo/bar.md)**Workspace-Relative**-[bar.md:1](/foo/bar.md#L1)-[bar.md](/foo/bar.md)-[bar.md:1](./foo/bar.md#L1)-[bar.md](./foo/bar.md)-[bar.md:1](foo/bar.md#L1)-[bar.md](foo/bar.md)**Relative From `foo/bar.md` To Itself**-[bar.md:1](./bar.md#L1)-[bar.md](./bar.md)-[bar.md:1](bar.md#L1)-[bar.md](bar.md)-[bar.md:1](../foo/bar.md#L1)-[bar.md](../foo/bar.md)**Same Idea, Root-Style Plus Line Anchor**- [bar.md:1](/foo/bar.md#L1)-[bar.md:1](./foo/bar.md#L1)-[bar.md:1](foo/bar.md#L1)-[bar.md:1](../foo/bar.md#L1)
Try clicking links, notice that none of them opens foo/bar.md file, while previously this format worked perfectly:
[bar](/c:/Users/XXX/Desktop/codex-tmp/foo/bar.md)
What is the expected behavior?
Clickable links to local files that Codex generates actually work and open the referenced file.
Additional information
That is very annoying that OpenAI rolls out such low-quality updates. This is not the first case; see #16117, #17334 - no reaction from the OpenAI team to these.
We are considering switching to other solutions.
Reacted by Teneko, Alex, Accessdenied123, Nicolas Hu, virtushda, André Kaufmann (Wikando), loy, Gabriel Gecy, Dmytro, BF4C5B1330 and 1 more
changed the title [-][regression] Any links (file references) in VS Code extension chat are not working regardless of their format[/-][+][regression] Any links (file references) in the VS Code extension chat are not working, regardless of their format.[/+]on Apr 13, 2026
@teneko Nah, it used to work. Not always by default, but good enough with this AGENTS.md record:
## Local files references
On Windows, when referencing local files IN RESPONSES, always use exactly this format for clickable links: [filename.ext:123](/c:/path/to/file/filename.ext#L123).
When referencing local files IN `.md` FILES, use one of these formats:
- [filename.ext:123](file:///C:/path/to/file/filename.ext#L123) - Absolute, for files outside of this workspace.
- [filename.ext:123](./filename.ext#L123) - Relative to current file
- [filename.ext:123](/filename.ext#L123) - Relative to workspace root
- [section](./filename.md#my-header) or [section](/filename.md#my-header) - Links to headers
If a path contains space, never use any markdown links. Write it as inline code in the format `/c:/path to file/filename.ext:123`, both IN RESPONSES and IN `.md` FILES.
`c:` is an example, use appropriate drive letters.
@alexchexes I think I define a regression if the feature was ever fully working. If I had to put a number on it, links work as intended only about 30% of the time. It is beyond me why some links redirect to the IDE while others redirect to the diff. Some links are relativ, some are absolute and links with line numbers are never working. Relative links have the oddity that these links are opening the IDE, here namely VSCode, but then showing only a blank page because out of workspace.. Calling this a regression is an understatement.
@teneko Maybe we were using different versions, environments, some settings, or anything else, but in my case, the AGENTS.md record I showed above used to work perfectly (with and without line numbers) right until the latest update that broke it. That is the definition of the regression that I was referencing in this issue; maybe it was not the case in your situation, though. Given the overall low quality of the extension, it might be that the links depended not only on the format that I forced via AGENTS.md but on some other hidden unknowns.
I've noticed it depends how links are written by the AI.
Without special instructions, most links are broken for me.
Using the above AGENTS.md contents, links are working again.
Local trusted workspace; referenced file exists inside the open workspace
Reproduction:
Have Codex emit a normal absolute workspace-file reference, for example [file.md](/Users/<user>/repos/<repo>/plans/open/file.md).
The reference renders as a blue file pill/link with the file icon.
Left-click it.
Observed:
Left-click does nothing; no file opens in Cursor.
The context menu contains only Copy path, Copy file contents, and Reveal in Finder.
There is no Open in Cursor / editor-target action.
Copying the path and opening it through Cursor's Quick Open works, confirming that the path and workspace file are valid.
Reloading is not relevant to link formatting: the Codex renderer has already recognized the target as a workspace-file reference, but no editor target is exposed in the UI.
Expected:
Clicking the file reference should open the existing workspace file in the current Cursor window, and line-qualified references should reveal the requested location.
I could not find the older open-in-target not supported in extension signature in the currently retained Cursor Codex logs, but the user-visible behavior is the same as #17774. This looks like a regression or incomplete fix in editor-target discovery/registration rather than a malformed Markdown link.
bugSomething isn't workingextensionIssues related to the VS Code extensionregressionBehaviors that worked in previous versions but were broken due to an updatewindows-osIssues related to Codex on Windows systems
Activity
[-][regression] Any links (file references) in VS Code extension chat are not working regardless of their format[/-][+][regression] Any links (file references) in the VS Code extension chat are not working, regardless of their format.[/+]github-actions commentedon Apr 13, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
open-in-targetfailure loop in extension #16320Powered by Codex Action
teneko commentedon Apr 14, 2026
It is not a regression if it has never worked before. 😆
alexchexes commentedon Apr 14, 2026
@teneko Nah, it used to work. Not always by default, but good enough with this AGENTS.md record:
Accessdenied123 commentedon Apr 15, 2026
I can confirm this on my side as well.
Environment:
In my case this happens on a Linux/WSL-style path like:
/home/user/dev/projects/project/frontend/src/features/blocks/ui/Paragraph.tsxSo this may not be Windows-only.
teneko commentedon Apr 15, 2026
@alexchexes I think I define a regression if the feature was ever fully working. If I had to put a number on it, links work as intended only about 30% of the time. It is beyond me why some links redirect to the IDE while others redirect to the diff. Some links are relativ, some are absolute and links with line numbers are never working. Relative links have the oddity that these links are opening the IDE, here namely VSCode, but then showing only a blank page because out of workspace.. Calling this a regression is an understatement.
alexchexes commentedon Apr 15, 2026
@teneko Maybe we were using different versions, environments, some settings, or anything else, but in my case, the AGENTS.md record I showed above used to work perfectly (with and without line numbers) right until the latest update that broke it. That is the definition of the regression that I was referencing in this issue; maybe it was not the case in your situation, though. Given the overall low quality of the extension, it might be that the links depended not only on the format that I forced via AGENTS.md but on some other hidden unknowns.
ggecy commentedon Apr 16, 2026
How is such basic (and crucial) functionality still not being fixed after so many days? This also happens on MacOS.
alexchexes commentedon Apr 16, 2026
I am afraid to jinx it, but starting from 16.04.2026 at around 20:30 UTC, links apparently started working again.
At least links in this format, as shown in the above AGENTS.md:
[.bashrc](/c:/Users/YourUserName/.bashrc)daihouzi commentedon Apr 17, 2026
26.415.20818, it works again
ggecy commentedon Apr 17, 2026
Yes, it started working right after I wrote the comment. Let's hope it won't stop again 😀
virtushda commentedon Apr 17, 2026
Was working until I had to reinstall the extension, now it's not working again.
Same version: 26.415.20818
virtushda commentedon Apr 17, 2026
I've noticed it depends how links are written by the AI.
Without special instructions, most links are broken for me.
Using the above AGENTS.md contents, links are working again.
terozio commentedon Aug 31, 2026
This has recurred on the current macOS Cursor extension and matches the symptom from #17774, which was closed as completed.
Environment:
2fdd31c9f33f7fbe501f2d57772dc5bf64b63620)openai.chatgpt26.825.51511 (darwin-arm64)Reproduction:
[file.md](/Users/<user>/repos/<repo>/plans/open/file.md).Observed:
Copy path,Copy file contents, andReveal in Finder.Open in Cursor/ editor-target action.Expected:
I could not find the older
open-in-target not supported in extensionsignature in the currently retained Cursor Codex logs, but the user-visible behavior is the same as #17774. This looks like a regression or incomplete fix in editor-target discovery/registration rather than a malformed Markdown link.