Skip to content

VS Code extension opens file+.vscode-resource.vscode-cdn.net links in external browser #12903

Closed

Description

@htazq

Summary

Clicking certain file/reference links in the Codex VS Code extension opens the system browser with a URL like:

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

The browser then fails with ERR_CONNECTION_CLOSED.

These links appear to be VS Code webview resource URLs and should not be handled as external web links.

Environment

  • Extension: openai.chatgpt 0.4.76 (win32-x64)
  • OS: Windows
  • VS Code: (can provide exact build if needed)

Actual behavior

  • Clicking a Codex-rendered reference/file link triggers external browser navigation.
  • External URL starts with https://file+.vscode-resource.vscode-cdn.net/...
  • Browser shows ERR_CONNECTION_CLOSED.

Expected behavior

  • Link should open inside VS Code (file in workspace + line navigation), or be rendered as non-clickable webview-internal resource.
  • It should not call external browser for file+.vscode-resource... URLs.

Repro steps (minimal)

  1. In Codex panel, generate a response containing a clickable file/reference link.
  2. Click the link.
  3. Observe that VS Code opens default browser to file+.vscode-resource.vscode-cdn.net URL.
  4. Browser fails with ERR_CONNECTION_CLOSED.

Notes

Activity

  1. added
    bug
    extension
    windows-os
    on Feb 26, 2026
  2. github-actions commented on Feb 26, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. htazq commented on Feb 26, 2026

    @htazq
    Author

    Additional details for triage:

    If useful, I can also provide renderer/exthost logs from VS Code Developer Tools.

  4. evaxes commented on Mar 7, 2026

    @evaxes

    here is the same issue as well.

  5. prince76007 commented on Mar 27, 2026

    @prince76007

    Facing the same issue.

  6. 1111esaese commented on Mar 28, 2026

    @1111esaese

    Facing the same issue.

  7. logless commented on Mar 29, 2026

    @logless

    have been pinging OpenAI devs on X for weeks regarding this issue.. Sometimes, sporadically it gets fixed (the file opens, sometimes even with the specific line focused), but it is very inconsistent. I can't believe they can't make it to work properly. The raw LLM output is usually something like

    [file.py](d:/Dev/file.py#L68)

    but the extension consistently fails to render it properly.

  8. tomchangg commented on Apr 9, 2026

    @tomchangg

    Facing the same issue.

  9. serhii-rieznik commented on Apr 10, 2026

    @serhii-rieznik

    Still the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions