codex - 💡(How to fix) Fix VS Code sidebar: assistant markdown file links render differently from identical user markdown links [2 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#18118Fetched 2026-04-17 08:32:36
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2closed ×1cross-referenced ×1

In the Codex sidebar in VS Code, local markdown file links behave differently depending on whether they appear in a user message or an assistant message.

The same markdown works when posted by the user, but breaks or is inconsistently rewritten when rendered from the assistant output.

Root Cause

In the Codex sidebar in VS Code, local markdown file links behave differently depending on whether they appear in a user message or an assistant message.

The same markdown works when posted by the user, but breaks or is inconsistently rewritten when rendered from the assistant output.

RAW_BUFFERClick to expand / collapse

What version of the IDE extension are you using?

openai.chatgpt-26.409.20454

What subscription do you have?

ChatGPT Plus

Which IDE are you using?

VS Code 1.116.0

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What issue are you seeing?

Summary

In the Codex sidebar in VS Code, local markdown file links behave differently depending on whether they appear in a user message or an assistant message.

The same markdown works when posted by the user, but breaks or is inconsistently rewritten when rendered from the assistant output.

Environment

  • VS Code: 1.116.0
  • Codex extension: openai.chatgpt-26.409.20454
  • Remote: WSL
  • Workspace root example: 2Repos

Expected behavior

Assistant-rendered markdown links like:

[A](api2/tests/test_main.py:2)

[B](api2/AGENTS.md:8)

[C](AGENTS.md:1)


### What steps can reproduce the bug?

Repro:
1. Open the Codex sidebar in VS Code under WSL.
2. Ask Codex to output:
   [A](api2/tests/test_main.py:2)
   [B](api2/AGENTS.md:8)
   [C](AGENTS.md:1)
3. Click the assistant-rendered links.
4. Paste the exact same markdown manually as a user message.
5. The user-authored links work, while the assistant-rendered ones do not.


### What is the expected behavior?

_No response_

### Additional information

_No response_

extent analysis

TL;DR

The issue can be mitigated by ensuring consistent markdown link formatting in both user and assistant messages.

Guidance

  • Verify that the markdown links are correctly formatted and consistent in both user and assistant output, as the issue might be related to how the links are rendered.
  • Check if the problem persists when using absolute paths in the markdown links instead of relative paths.
  • Test the behavior with different types of files and links to see if the issue is specific to certain file types or link formats.
  • Consider reporting the issue to the Codex extension developers, as it might be a bug in how they handle markdown links in assistant output.

Example

No code snippet is provided as the issue seems to be related to the rendering of markdown links in the Codex sidebar rather than a code-specific problem.

Notes

The issue might be specific to the combination of VS Code, Codex extension, and WSL environment. Further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Use absolute paths in markdown links or report the issue to the Codex extension developers for further assistance, as the problem seems to be related to how the extension handles markdown links in assistant output.

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…

FAQ

Expected behavior

Assistant-rendered markdown links like:

[A](api2/tests/test_main.py:2)

[B](api2/AGENTS.md:8)

[C](AGENTS.md:1)

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix VS Code sidebar: assistant markdown file links render differently from identical user markdown links [2 comments, 2 participants]