In VS Code, how can I make ChatGPT/Codex generate clickable links to files in the chat window?

When I click on links to files in the VS Code chat window, usually sometimes makes Firefox (my default browser) open and attempt to use the link as a URL.

In other words, when I click on a blue link in the chat that should open the respective script in VS Code, Firefox opens with a non-functional URL such as the following

https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/MYUSER/.vscode/extensions/openai.chatgpt-26.304.20706-win32-x64/webview/

I’ve noticed that this only happens to paths that are in the Windows filesystem, not in WSL. How can I resolve this?