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
Hyperlinks not rendered properly and non-clickable now in VS Code extension #13277
bugSomething isn't workingextensionIssues related to the VS Code extensionregressionBehaviors that worked in previous versions but were broken due to an update
Microsoft Windows NT 10.0.26100.0 x64; remote ssh on Linux host Linux 5.15.0-122-generic x86_64 x86_64
What issue are you seeing?
Now, it displays links such as [Protocol.h](<some_absolute_path_prefix>/Common/Include/Protocol.h:66) directly in markdown inline code format, whereas it used to be a clickable hyperlink with text of "Protocol.h:66", and that I could right click to "copy path".
What steps can reproduce the bug?
Ask it to pinpoint some specific code, so that it gives you a specific location directly, and watch how it doesn't render properly into a hyper link.
Thanks for flagging. I noticed this too - the model sometimes wraps markdown links in codeblocks so the app/ vs code wouldn't link it. I made a fix for this yesterday. Should be deployed ~ soon ~
As an intermediate workaround, I created ~/.codex/AGENTS.md with the following content:
# Global Agent Instructions## VS Code Clickable File Links- Always output file references as Markdown links with an absolute filesystem path and optional line number using this format:
-`[label](/<absolute-path>:line)`- On Windows, use forward slashes and include the drive letter in the path, for example:
-`[file.h](/c:/project/src/file.h:100)`- Prefer this format for every file reference so links open directly in this VS Code chat environment.
- Do not use `vscode://` links for file references.
Updated to the newest version 26.304.20706, still has some issues with links, though maybe the proper markdown links wrapped in codeblocks is now working, it's just the (GPT-5.3-Codex) model often doesn't even use markdown links. But in any case, here is another example where it used to work (at least the first one is clickable, the second one is not) like so:
I don't have any specific instructions in my AGENTS.md (or anywhere else) to force any format on links, I simply have "refer to both the symbol's name and the location in the source file", I trust that the model knows what to do, and that the UI knows how to handle the model's output. @pash-openai I wonder what your or the general codex team's best practice suggestion is. Because to me as a user if something used to work but now it doesn't, that's a regression bug. Although I may be able to harden it by explicitly telling it to follow markdown format for links, but shouldn't that be part of the system prompt...? Also, on the point that the (line 1867) renders as a link but doesn't actually work when I click, again as a user, it's a bit frustrating when what I see is not what I get.
Sorry for the nitpick, it's not a huge deal but when I look at past codex sessions' chat history it's quite inconvenient.
I can reproduce a closely related variant of this on macOS as well.
Environment:
Codex VS Code extension: 26.313.41514
VS Code: 1.111.0
OS: macOS 26.3.1
Behavior in my case:
File references in Codex responses are rendered as blue links in the VS Code chat panel.
Clicking them does not navigate to the file in the editor.
This affects both:
workspace files
non-workspace files such as VS Code user settings
In my setup, the click does not successfully open anything in the editor.
So this seems broader than just one path format or one platform. It looks like the same renderer / link-handling pipeline is still broken on current macOS builds too.
Related duplicate report that was auto-closed in favor of existing issues:
There may be a related but separate bug upstream of the renderer/link-handler layer.
In my Codex session inside VS Code, the agent explicitly said it was being prevented by higher-priority injected session instructions from emitting vscode:// file links, and that URI schemes like vscode:// and file:// were forbidden for file references.
That suggests two distinct layers may be involved here:
The extension/UI problem described in this issue, where file references render incorrectly or are non-clickable.
A Codex instruction-layer problem, where the model is being told not to generate VS Code-openable links in the first place.
If maintainers think that restriction is actually part of the same root cause, feel free to fold it in, but based on the behaviour it looks like a separate bug from the renderer/click-handling problem tracked in this issue.
To add on to this - though I know this is a VS Code ticket - the same behavior is exhibited in the IDEA integration. path:line works from codex running in the IntelliJ terminal, but not from Codex plugin chat; markdown absolute links treat :line as part of filename; #L1, idea://open, and jetbrains://idea/navigate/reference all fail or escape to Chrome. Nothing I've been able to configure changed any of this behavior. The plugin integration with IDEA just doesn't work for file links at all.
I didn't find a specific IDEA ticket to attach this to, but will open a new one if advised to do so.
IDE: Intelli-J IDEA 2026.1 (Build #IU-261.23567.138, built on April 22, 2026)
OS: Mac OS X Tahoe (26.3.1 (25D2128)) on Apple M3 silicon
JetBrains AI Assistant plugin: 261.23567.193
Embedded Codex CLI binary: codex-cli 0.128.0
Codex CLI (from brew): codex-cli 0.130.0
bugSomething isn't workingextensionIssues related to the VS Code extensionregressionBehaviors that worked in previous versions but were broken due to an update
Activity
pash-openai commentedon Mar 2, 2026
Thanks for flagging. I noticed this too - the model sometimes wraps markdown links in codeblocks so the app/ vs code wouldn't link it. I made a fix for this yesterday. Should be deployed ~ soon ~
talraveh1 commentedon Mar 3, 2026
As an intermediate workaround, I created ~/.codex/AGENTS.md with the following content:
That solved it for me.
monkey-sheng commentedon Mar 5, 2026
Updated to the newest version 26.304.20706, still has some issues with links, though maybe the proper markdown links wrapped in codeblocks is now working, it's just the (GPT-5.3-Codex) model often doesn't even use markdown links. But in any case, here is another example where it used to work (at least the first one is clickable, the second one is not) like so:
I don't have any specific instructions in my AGENTS.md (or anywhere else) to force any format on links, I simply have "refer to both the symbol's name and the location in the source file", I trust that the model knows what to do, and that the UI knows how to handle the model's output.
@pash-openai I wonder what your or the general codex team's best practice suggestion is. Because to me as a user if something used to work but now it doesn't, that's a regression bug. Although I may be able to harden it by explicitly telling it to follow markdown format for links, but shouldn't that be part of the system prompt...? Also, on the point that the
(line 1867)renders as a link but doesn't actually work when I click, again as a user, it's a bit frustrating when what I see is not what I get.Sorry for the nitpick, it's not a huge deal but when I look at past codex sessions' chat history it's quite inconvenient.
Avi7ii commentedon Mar 17, 2026
I can reproduce a closely related variant of this on macOS as well.
Environment:
26.313.415141.111.0macOS 26.3.1Behavior in my case:
So this seems broader than just one path format or one platform. It looks like the same renderer / link-handling pipeline is still broken on current macOS builds too.
Related duplicate report that was auto-closed in favor of existing issues:
Avi7ii commentedon Mar 17, 2026
Additional finding after more testing on macOS:
The issue appears to be strongly related to spaces in the path.
What I verified:
[AGENTS.md](/Users/thom/.codex/AGENTS.md:1)[README.md](/Users/thom/Desktop/Localsend X/README.md:1)/Users/thom/.codex-links/localsend-readme.md -> /Users/thom/Desktop/Localsend X/README.md/Users/thom/.codex-links/vscode-settings.json -> /Users/thom/Library/Application Support/Code/User/settings.jsonSo the current behavior seems to be:
:lineis the right link formatThis may help narrow the bug down to path parsing / URI handling for spaces inside the VS Code extension webview link pipeline.
Current user workaround:
/absolute/path:lineagainst those symlink pathsXarishark commentedon Mar 29, 2026
Still a problem as of the latest version.
AnthonyBAC commentedon Apr 2, 2026
Im haviing the same problema with the extesion on cursor
snow212-cn commentedon Apr 8, 2026
This malignant bug has existed for months, and openai just didn't do anything.
alicercedigital commentedon Apr 10, 2026
the link is openning chrome with this url:
https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/username/.vscode/extensions/openai.chatgpt-26.5406.31014-win32-x64/webview/
Can we fix this?
paulz commentedon Apr 12, 2026
was working, now broken again in
26.409.20454VS Code Version: 1.115.0 (Universal)
macOS
paulz commentedon Apr 12, 2026
If anyone is interested, here is the last pre-release version that has links working:
26.5406.40811To install it select it from "Uninstall" drop down:

Yuukiiii commentedon Apr 13, 2026
It really works! Thanks a lot! 🤝
rubenalonsoes commentedon Apr 13, 2026
I have the same problem from Windows WSL:
Visual Studio Code
Version: 1.115.0
OS: Windows_NT x64
Codex openai.chatgpt
Version 26.409.20454
alexolog commentedon Apr 16, 2026
There may be a related but separate bug upstream of the renderer/link-handler layer.
In my Codex session inside VS Code, the agent explicitly said it was being prevented by higher-priority injected session instructions from emitting
vscode://file links, and that URI schemes likevscode://andfile://were forbidden for file references.That suggests two distinct layers may be involved here:
I filed the second issue separately here:
If maintainers think that restriction is actually part of the same root cause, feel free to fold it in, but based on the behaviour it looks like a separate bug from the renderer/click-handling problem tracked in this issue.
I-am-Kenough commentedon May 11, 2026
To add on to this - though I know this is a VS Code ticket - the same behavior is exhibited in the IDEA integration.
path:lineworks from codex running in the IntelliJ terminal, but not from Codex plugin chat; markdown absolute links treat:lineas part of filename;#L1,idea://open, andjetbrains://idea/navigate/referenceall fail or escape to Chrome. Nothing I've been able to configure changed any of this behavior. The plugin integration with IDEA just doesn't work for file links at all.I didn't find a specific IDEA ticket to attach this to, but will open a new one if advised to do so.
IDE: Intelli-J IDEA 2026.1 (Build #IU-261.23567.138, built on April 22, 2026)
OS: Mac OS X Tahoe (26.3.1 (25D2128)) on Apple M3 silicon
JetBrains AI Assistant plugin: 261.23567.193
Embedded Codex CLI binary: codex-cli 0.128.0
Codex CLI (from brew): codex-cli 0.130.0
etraut-openai commentedon Aug 5, 2026
Link and IDE handlers restored clickable file references