Skip to content

[regression] Any links (file references) in the VS Code extension chat are not working, regardless of their format. #17649

Open

Description

@alexchexes

What version of the IDE extension are you using?

26.409.20454

What subscription do you have?

Plus

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

Absolutely any links to local machine files stopped working after one of the April updates to codex extension.

Screencast:

PowerToys_2026-04-13--17-19-09--367.mp4

What steps can reproduce the bug?

  1. Create a file: C:\Users\XXX\Desktop\codex-tmp\foo\bar.md and open C:\Users\XXX\Desktop\codex-tmp in VS Code

  2. Ask Codex to produce a response with this output:

Using the workspace file at `C:\Users\XXX\Desktop\codex-tmp\foo\bar.md`.

**Absolute**
- [bar.md:1](/c:/Users/XXX/Desktop/codex-tmp/foo/bar.md#L1)
- [bar.md](/c:/Users/XXX/Desktop/codex-tmp/foo/bar.md)
- [bar.md:1](file:///C:/Users/XXX/Desktop/codex-tmp/foo/bar.md#L1)
- [bar.md](file:///C:/Users/XXX/Desktop/codex-tmp/foo/bar.md)

**Workspace-Relative**
- [bar.md:1](/foo/bar.md#L1)
- [bar.md](/foo/bar.md)
- [bar.md:1](./foo/bar.md#L1)
- [bar.md](./foo/bar.md)
- [bar.md:1](foo/bar.md#L1)
- [bar.md](foo/bar.md)

**Relative From `foo/bar.md` To Itself**
- [bar.md:1](./bar.md#L1)
- [bar.md](./bar.md)
- [bar.md:1](bar.md#L1)
- [bar.md](bar.md)
- [bar.md:1](../foo/bar.md#L1)
- [bar.md](../foo/bar.md)

**Same Idea, Root-Style Plus Line Anchor**- [bar.md:1](/foo/bar.md#L1)
- [bar.md:1](./foo/bar.md#L1)
- [bar.md:1](foo/bar.md#L1)
- [bar.md:1](../foo/bar.md#L1)
  1. Try clicking links, notice that none of them opens foo/bar.md file, while previously this format worked perfectly:
[bar](/c:/Users/XXX/Desktop/codex-tmp/foo/bar.md)

What is the expected behavior?

Clickable links to local files that Codex generates actually work and open the referenced file.

Additional information

That is very annoying that OpenAI rolls out such low-quality updates. This is not the first case; see #16117, #17334 - no reaction from the OpenAI team to these.

We are considering switching to other solutions.

Activity

  1. added
    extension
    on Apr 13, 2026
  2. changed the title [-][regression] Any links (file references) in VS Code extension chat are not working regardless of their format[/-] [+][regression] Any links (file references) in the VS Code extension chat are not working, regardless of their format.[/+] on Apr 13, 2026
  3. added
    bug
    windows-os
    on Apr 13, 2026
  4. added
    regression
    on Apr 13, 2026
  5. teneko commented on Apr 14, 2026

    @teneko

    It is not a regression if it has never worked before. 😆

  6. alexchexes commented on Apr 14, 2026

    @alexchexes
    Author

    @teneko Nah, it used to work. Not always by default, but good enough with this AGENTS.md record:

    ## Local files references
    On Windows, when referencing local files IN RESPONSES, always use exactly this format for clickable links: [filename.ext:123](/c:/path/to/file/filename.ext#L123).
    When referencing local files IN `.md` FILES, use one of these formats:
    - [filename.ext:123](file:///C:/path/to/file/filename.ext#L123) - Absolute, for files outside of this workspace.
    - [filename.ext:123](./filename.ext#L123) - Relative to current file
    - [filename.ext:123](/filename.ext#L123) - Relative to workspace root
    - [section](./filename.md#my-header) or [section](/filename.md#my-header) - Links to headers
    If a path contains space, never use any markdown links. Write it as inline code in the format `/c:/path to file/filename.ext:123`, both IN RESPONSES and IN `.md` FILES.
    `c:` is an example, use appropriate drive letters.
    
  7. Accessdenied123 commented on Apr 15, 2026

    @Accessdenied123

    I can confirm this on my side as well.

    Environment:

    • IDE: VS Code
    • Workspace is trusted
    • File links generated by Codex are correct and the target file exists
    • Opening the same file manually via Ctrl+P works
    • Clicking the blue file link in Codex chat does nothing
    • Developer: Reload Window did not help

    In my case this happens on a Linux/WSL-style path like:
    /home/user/dev/projects/project/frontend/src/features/blocks/ui/Paragraph.tsx

    So this may not be Windows-only.

  8. teneko commented on Apr 15, 2026

    @teneko

    @alexchexes I think I define a regression if the feature was ever fully working. If I had to put a number on it, links work as intended only about 30% of the time. It is beyond me why some links redirect to the IDE while others redirect to the diff. Some links are relativ, some are absolute and links with line numbers are never working. Relative links have the oddity that these links are opening the IDE, here namely VSCode, but then showing only a blank page because out of workspace.. Calling this a regression is an understatement.

  9. alexchexes commented on Apr 15, 2026

    @alexchexes
    Author

    @teneko Maybe we were using different versions, environments, some settings, or anything else, but in my case, the AGENTS.md record I showed above used to work perfectly (with and without line numbers) right until the latest update that broke it. That is the definition of the regression that I was referencing in this issue; maybe it was not the case in your situation, though. Given the overall low quality of the extension, it might be that the links depended not only on the format that I forced via AGENTS.md but on some other hidden unknowns.

  10. ggecy commented on Apr 16, 2026

    @ggecy

    How is such basic (and crucial) functionality still not being fixed after so many days? This also happens on MacOS.

  11. alexchexes commented on Apr 16, 2026

    @alexchexes
    Author

    I am afraid to jinx it, but starting from 16.04.2026 at around 20:30 UTC, links apparently started working again.

    At least links in this format, as shown in the above AGENTS.md:

    [.bashrc](/c:/Users/YourUserName/.bashrc)

  12. daihouzi commented on Apr 17, 2026

    @daihouzi

    26.415.20818, it works again

  13. ggecy commented on Apr 17, 2026

    @ggecy

    Yes, it started working right after I wrote the comment. Let's hope it won't stop again 😀

  14. virtushda commented on Apr 17, 2026

    @virtushda

    Was working until I had to reinstall the extension, now it's not working again.
    Same version: 26.415.20818

  15. virtushda commented on Apr 17, 2026

    @virtushda

    I've noticed it depends how links are written by the AI.
    Without special instructions, most links are broken for me.
    Using the above AGENTS.md contents, links are working again.

  16. terozio commented on Aug 31, 2026

    @terozio

    This has recurred on the current macOS Cursor extension and matches the symptom from #17774, which was closed as completed.

    Environment:

    • macOS arm64
    • Cursor 3.17.8 (2fdd31c9f33f7fbe501f2d57772dc5bf64b63620)
    • Codex extension openai.chatgpt 26.825.51511 (darwin-arm64)
    • Local trusted workspace; referenced file exists inside the open workspace

    Reproduction:

    1. Have Codex emit a normal absolute workspace-file reference, for example [file.md](/Users/<user>/repos/<repo>/plans/open/file.md).
    2. The reference renders as a blue file pill/link with the file icon.
    3. Left-click it.

    Observed:

    • Left-click does nothing; no file opens in Cursor.
    • The context menu contains only Copy path, Copy file contents, and Reveal in Finder.
    • There is no Open in Cursor / editor-target action.
    • Copying the path and opening it through Cursor's Quick Open works, confirming that the path and workspace file are valid.
    • Reloading is not relevant to link formatting: the Codex renderer has already recognized the target as a workspace-file reference, but no editor target is exposed in the UI.

    Expected:

    • Clicking the file reference should open the existing workspace file in the current Cursor window, and line-qualified references should reveal the requested location.

    I could not find the older open-in-target not supported in extension signature in the currently retained Cursor Codex logs, but the user-visible behavior is the same as #17774. This looks like a regression or incomplete fix in editor-target discovery/registration rather than a malformed Markdown link.

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

    bugextensionregressionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions