Skip to content

Codex VS Code extension renders file references as blue links, but clicking does not open files in the editor #14946

Closed as duplicate

Description

@Avi7ii

Proposed issue: Codex VS Code extension renders file references as links but clicking does not open files

Suggested title

Codex VS Code extension renders file references as blue links, but clicking does not open files in the editor

Summary

In the Codex chat panel inside VS Code, file references in assistant messages are rendered as blue links, but clicking them does not open the referenced file in the editor.

In my setup this affects both:

  • files inside the current workspace
  • files outside the current workspace, such as VS Code user settings

The expected behavior is that clicking a rendered file reference should open the target file directly in VS Code, ideally at the referenced line/column if present.

Environment

  • Codex VS Code extension: Codex - OpenAI's coding agent 26.313.41514
  • VS Code: 1.111.0
  • OS: macOS 26.3.1 (25D2128)
  • Extension host: local desktop VS Code

Reproduction steps

  1. Open the Codex chat panel in VS Code.
  2. Ask Codex to reference a file in the current workspace, for example:
    • /Users/thom/Desktop/Localsend X/README.md
  3. Ask Codex to reference a file with a line number, for example:
    • /Users/thom/Desktop/Localsend X/README.md#L1
  4. Click the rendered blue link in the chat UI.
  5. Repeat with a non-workspace file, for example:
    • /Users/thom/Library/Application Support/Code/User/settings.json#L15

Expected behavior

  • Workspace file references should open directly in VS Code.
  • If a line number is present, the editor should jump to that line.
  • Non-workspace file references should either:
    • open directly in VS Code, or
    • fail with a clear message that only workspace files are supported.

Actual behavior

  • The text renders as a blue link in the chat panel.
  • Clicking the link does not open the file in the editor.
  • In my case there is no successful navigation for either workspace or non-workspace paths.

Notes

  • This appears to be separate from path formatting bugs such as Windows path escaping.
  • I also tested a workspace file link to rule out "outside workspace only" behavior, and that still did not open.
  • Because the link is styled as clickable, the current behavior is confusing: it looks supported but does nothing.

Why I suspect this is in the renderer / link handling layer

VS Code's extension API documents that clickable links inside webviews usually need to use command URIs, and that command URIs must be explicitly enabled for webviews. VS Code also documents that webviews do not directly access file: resources. That suggests the chat UI may need to generate command: links such as vscode.open instead of plain file-like hrefs, or otherwise bridge clicks to the extension host.

Related reports

Relevant VS Code API references

Optional extra detail to include

If useful, I can provide:

  • a screen recording of the click doing nothing
  • screenshots showing the same behavior for workspace and non-workspace files
  • exact example strings that render as blue links but do not navigate

Activity

  1. added
    bug
    extension
    on Mar 17, 2026
  2. etraut-openai commented on Mar 17, 2026

    @etraut-openai
    Contributor

    I think this is a duplicate of #13277.

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

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions