codex - 💡(How to fix) Fix VS Code extension on Windows: clicking Codex file links triggers vscode://codex/open-in-targets but extension says “open-in-target not supported in extension” [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17628Fetched 2026-04-14 05:42:06
View on GitHub
Comments
3
Participants
2
Timeline
10
Reactions
0
Timeline (top)
commented ×3labeled ×3closed ×2cross-referenced ×1

On Windows, clicking file references in the Codex VS Code chat does not open the file in VS Code.

Instead, the Codex extension appears to route the click through vscode://codex/open-in-targets, but the extension logs:

open-in-target not supported in extension

This makes file references in Codex chat effectively non-openable.

Error Message

Error fetching errorMessage="open-in-target not supported in extension"

  • ... Error fetching errorMessage="open-in-target not supported in extension" ... url=vscode://codex/open-in-targets

Root Cause

  • I checked whether this was caused by my project or path format, but the log suggests the click is reaching the Codex extension and failing there.
  • I also checked whether this might be a recent VS Code security change, but I could not find an official VS Code release note indicating that vscode:// extension URI handling for this case was intentionally restricted.
  • There is a related Windows extension issue here:
    • #7487 (openai-codex:/... fails to resolve)
  • There is also community discussion reporting similar behavior:
    • Reddit: https://www.reddit.com/r/codex/comments/1rn42co/is_it_just_me_or_codex_on_vscode_is_not_able_to/
    • Cursor forum: https://forum.cursor.com/t/cursor-3-0-on-windows-codex-file-links-open-external-browser-instead-of-ide-with-open-in-target-not-supported-in-extension/156563

Fix Action

Fix / Workaround

Workarounds

Current workaround is manual:

  • copy the path:line
  • open with Ctrl+P
  • jump to the line manually
RAW_BUFFERClick to expand / collapse

Summary

On Windows, clicking file references in the Codex VS Code chat does not open the file in VS Code.

Instead, the Codex extension appears to route the click through vscode://codex/open-in-targets, but the extension logs:

open-in-target not supported in extension

This makes file references in Codex chat effectively non-openable.

Environment

  • OS: Windows
  • VS Code: 1.115.0
  • Codex extension: openai.chatgpt 26.5409.20454
  • Launch style:
    • Code.exe --extensions-dir "C:\VSCode\extensions\Default" --user-data-dir "C:\VSCode\settings\Default1"

Steps to Reproduce

  1. Open VS Code with the user-data-dir/extensions-dir above.
  2. Open the Codex extension / Codex sidebar.
  3. In a Codex conversation, click a local file reference rendered by Codex.
  4. Example reference that was tested:
    • [Api.ts](/c:/Java/NetBeans-projects/VNAB/e-ABS-develop/VnabEabsWebVue/src/main/webapp/vue/src/Api.ts:117)

Actual Result

  • The file is not opened in VS Code.
  • In previous setups / versions, these references used to open locally.
  • In my current setup, the extension log shows:

Error fetching errorMessage="open-in-target not supported in extension"

and

url=vscode://codex/open-in-targets

Expected Result

Clicking a Codex file reference should open the referenced local file in the editor at the target line.

Relevant Logs

From:

C:\VSCode\settings\Default1\logs\20260413T114743\window1\exthost\openai.chatgpt\Codex.log

Relevant lines:

  • ... Error fetching errorMessage="open-in-target not supported in extension" ... url=vscode://codex/open-in-targets
  • This occurred multiple times after clicking file links in the Codex chat UI.

Also observed in the same log:

  • local-environments is not supported in the extension
  • separate 403/plugin sync warnings, but those seem unrelated

Notes

  • I checked whether this was caused by my project or path format, but the log suggests the click is reaching the Codex extension and failing there.
  • I also checked whether this might be a recent VS Code security change, but I could not find an official VS Code release note indicating that vscode:// extension URI handling for this case was intentionally restricted.
  • There is a related Windows extension issue here:
    • #7487 (openai-codex:/... fails to resolve)
  • There is also community discussion reporting similar behavior:
    • Reddit: https://www.reddit.com/r/codex/comments/1rn42co/is_it_just_me_or_codex_on_vscode_is_not_able_to/
    • Cursor forum: https://forum.cursor.com/t/cursor-3-0-on-windows-codex-file-links-open-external-browser-instead-of-ide-with-open-in-target-not-supported-in-extension/156563

Workarounds

Current workaround is manual:

  • copy the path:line
  • open with Ctrl+P
  • jump to the line manually

extent analysis

TL;DR

The issue is likely due to the Codex extension not supporting the open-in-target feature, and a workaround is to manually open the file using Ctrl+P and jump to the line.

Guidance

  • Verify that the issue is not specific to the project or path format by trying to open a file reference in a different project or with a different path format.
  • Check the Codex extension documentation to see if there are any known issues or limitations with the open-in-target feature on Windows.
  • Consider reaching out to the Codex extension developers or the VS Code community to report the issue and see if there are any plans to add support for open-in-target on Windows.
  • In the meantime, use the manual workaround of copying the path:line and opening the file using Ctrl+P and jumping to the line manually.

Example

No code snippet is provided as the issue seems to be related to the Codex extension and its interaction with VS Code, rather than a specific code problem.

Notes

The issue may be related to a known problem with the Codex extension on Windows, as reported in issue #7487 and discussed in the community forums. The open-in-target not supported in extension error message suggests that the extension is not capable of handling this type of link on Windows.

Recommendation

Apply the manual workaround until the Codex extension developers add support for open-in-target on Windows, as there is no clear indication of a fixed version that resolves this issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING