Hyperlinks not rendered properly and non-clickable now in VS Code extension
What version of the IDE extension are you using?
0.4.79
What subscription do you have?
ChatGPT plus
Which IDE are you using?
VS Code
What platform is your computer?
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]([Protocol.h](<some_absolute_path_prefix>/Common/Include/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.
What is the expected behavior?
Like this, as it used to:<img width="220" height="36" alt="Image" src="https://github.com/user-attachments/assets/58f68cef-6b17-4b3d-819b-38cffae81a9d" />
Not like this:
<img width="353" height="23" alt="Image" src="https://github.com/user-attachments/assets/c247b858-7a74-490b-9877-cfaae82ee3fe" />
Additional information
Works in 0.4.78, not in the latest 0.4.79
15 Comments
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:
``` markdown
Global Agent Instructions
VS Code Clickable File Links
[label](/<absolute-path>:line)[file.h](/c:/project/src/file.h:100)vscode://links for file references.<img width="562" height="23" alt="Image" src="https://github.com/user-attachments/assets/decaac50-eef7-468e-9f72-9e8abc6c4e64" />
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:
<img width="351" height="22" alt="Image" src="https://github.com/user-attachments/assets/dcb9d19c-b926-4ba4-9d29-40f9fae957d5" />
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:
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:
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 pathsStill a problem as of the latest version.
Im haviing the same problema with the extesion on cursor
This malignant bug has existed for months, and openai just didn't do anything.
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?
was working, now broken again in
26.409.20454VS Code Version: 1.115.0 (Universal)
macOS
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:
<img width="666" height="289" alt="Image" src="https://github.com/user-attachments/assets/8485134a-cb3c-4a28-a57e-d074196ad4c3" />
It really works! Thanks a lot! 🤝
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
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.
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