Skip to content

Markdown file links with spaces in absolute paths render as plain text #14641

Closed as duplicate

Description

@AaronPorterOS

What version of the Codex App are you using (From “About Codex” dialog)?

26.311.21342 (993)

What subscription do you have?

Enterprise

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

Markdown file links rendered in responses show as plain text instead of clickable links when the absolute path contains unencoded spaces.

Failed example:

[example.ts](/Volumes/Windows 11/My App/src/example.ts)

Actual: the raw Markdown string is shown in the response
Expected: a clickable file link

If the spaces are percent-encoded, it works:

[example.ts](/Volumes/Windows%2011/My%20App/src/example.ts)

Here's an example from the app:

Image

What steps can reproduce the bug?

  1. Create a folder whose absolute path contains spaces
  2. Create a file inside that folder
  3. In a Codex conversation, ask Codex to reference that file as a clickable file link in its response
  4. Observe that the response shows the raw Markdown text instead of a clickable link when the path contains unencoded spaces

What is the expected behavior?

Markdown file links rendered in responses should become clickable links even when the absolute path contains spaces, or the renderer/output pipeline should automatically handle/encode spaces in the link target

For example, a file at /Volumes/Windows 11/My App/src/example.ts should render as a clickable link

Additional information

No response

Activity

  1. added
    app
    on Mar 13, 2026
  2. added
    bug
    on Mar 13, 2026
  3. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor
  4. phillza commented on Mar 16, 2026

    @phillza

    Confirmed on Windows in the Codex desktop app as well.

    Environment:

    • App version: 26.311.2262.0
    • Platform: Windows 11

    What I see:

    • Assistant replies sometimes show the raw Markdown file link instead of a rendered clickable file reference
    • The visible output looks like [filename](C:\Users\...\folder with spaces\file.csv) inside the message body
    • Clicking is impossible because the Markdown never renders into a link in the first place

    This seems to happen when the absolute local path contains spaces. In my case the file paths are typical Windows paths under directories like C:\Users\phillip\Coding projects\...

    So this does not appear to be macOS-only or Unix-path-only. It also affects Windows drive-letter paths when spaces are present in the link target.

    Related symptom: when file references do render as blue text in other replies, Windows local-file opening is already affected by #14079. This issue is slightly earlier in the pipeline because the Markdown link is shown literally instead of rendering at all.

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

    appartifacts-in-codexbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions