Skip to content

VS Code extension: clicking file links in chat opens external browser (vscode-resource.vscode-cdn.net) instead of navigating to local file/line #13718

@igl76

Description

@igl76

What version of the IDE extension are you using?

openai.chatgpt-26.304.20706-win32-x64

What subscription do you have?

Pro

Which IDE are you using?

VS Code

What platform is your computer?

Windows 10

What issue are you seeing?

Summary

Markdown file links in assistant responses are rendered as clickable blue links, but clicking them does not open the file in VS Code.
Instead, VS Code webview rewrites the path into a URL like:

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

That URL is then opened in Chrome and fails to resolve.

Actual Behavior

  • External browser (Chrome) opens.
  • Browser navigates to a file+.vscode-resource.vscode-cdn.net URL and fails.
  • No editor navigation occurs.

Impact

  • Breaks normal review workflow for line-level findings.
  • Makes assistant file references cumbersome to use.
  • Creates confusion because links appear like editor-navigation links but behave like broken web URLs.

Notes

  • As a workaround, non-clickable plain references (e.g., main.c:33) are usable with manual jump (Ctrl+G).
  • This looks like a webview link-routing/URI-conversion issue for Windows absolute paths.

What steps can reproduce the bug?

  1. Open VS Code with the Codex extension enabled.
  2. In chat, ask for a code review that includes file/line references.
  3. Click a rendered blue link to a local file line (example in response: main.c:33).
  4. Observe behavior.

What is the expected behavior?

  • Click should navigate inside VS Code to the local file and line (or at minimum open file in editor).
  • No external browser launch for local workspace file references.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssues related to the VS Code extensionwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions