codex - 💡(How to fix) Fix Windows desktop: file card path in chat attachment box drops backslashes

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…

When the assistant references a local file in a reply, the black file card sometimes shows a malformed Windows path with missing slashes (for example C:Projectsnew-pc-dev-setupdocs16-day0-quick-start.md) instead of a normal file label/path.

Root Cause

When the assistant references a local file in a reply, the black file card sometimes shows a malformed Windows path with missing slashes (for example C:Projectsnew-pc-dev-setupdocs16-day0-quick-start.md) instead of a normal file label/path.

RAW_BUFFERClick to expand / collapse
<img width="1409" height="1116" alt="Image" src="https://github.com/user-attachments/assets/36ed39b9-4946-49d7-82c3-e02c077900f2" />

Summary

When the assistant references a local file in a reply, the black file card sometimes shows a malformed Windows path with missing slashes (for example C:Projectsnew-pc-dev-setupdocs16-day0-quick-start.md) instead of a normal file label/path.

Expected behavior

  • File card should show a clean filename (for example 16-day0-quick-start.md)
  • If full path is shown, slashes should be preserved correctly (for example C:\Projects\new-pc-dev-setup\docs\16-day0-quick-start.md)

Actual behavior

  • File card shows malformed path with stripped separators.

Repro steps

  1. In Codex desktop app, ask assistant to reference a local file using a Windows absolute path markdown link.
  2. Assistant responds with file link.
  3. Observe black file card at bottom of assistant message.
  4. Path text appears concatenated (missing \\).

Environment

  • Codex desktop app
  • Windows 11
  • Reproducible in normal conversation replies with file references

Impact

  • Confusing file identity/path display
  • Looks broken and reduces trust in file-linking UI
  • and the link fails see attached file
<img width="103" height="96" alt="Image" src="https://github.com/user-attachments/assets/66534507-6ed7-4f79-a0d2-b66a28790896" />
  • Open as action also fails (no file is opened)

Note

I have a screenshot and can attach it if needed.

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

  • File card should show a clean filename (for example 16-day0-quick-start.md)
  • If full path is shown, slashes should be preserved correctly (for example C:\Projects\new-pc-dev-setup\docs\16-day0-quick-start.md)

Still need to ship something?

×6

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

Back to top recommendations

TRENDING