Clicking local file links with spaces opens a blank file in VS Code instead of the actual file
Resolved 💬 1 comment Opened Mar 10, 2026 by rpiochi Closed Mar 11, 2026
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.305.950 (863)
What subscription do you have?
Plus
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
When Codex returns a local file link in chat, clicking the link does not open the real file in VS Code.
Instead, VS Code opens a blank editor tab / blank file buffer.
I verified that the file exists on disk and has content. The issue seems to be in how the Codex App renders or resolves local file links.
Reproduction context:
- OS: macOS
- Editor: VS Code
- Workspace path contains spaces
- Workspace is inside a cloud-synced directory (
Google Drive) - Example real file path:
/Users/.../My Drive/dev/AIOS/2026-03-06-assistente-onboarding-telas.md
What I tested:
- Standard markdown link to the absolute path
- Markdown link with destination wrapped in
<> - Absolute path with
#L1
None of them opened the correct file from the Codex chat UI.
Observed behavior:
- The file link in chat is not resolved correctly
- In all cases the path appears to be rewritten with
%20 - Clicking opens a blank file in VS Code instead of the existing file on disk
What steps can reproduce the bug?
Reproduction context:
- OS: macOS
- Editor: VS Code
- Workspace path contains spaces
- Workspace is inside a cloud-synced directory (
Google Drive) - Example real file path:
/Users/.../My Drive/dev/AIOS/2026-03-06-assistente-onboarding-telas.md
What is the expected behavior?
Expected behavior:
- Clicking a local file reference in Codex chat should open the existing file in VS Code at the correct path
- Paths with spaces should be handled correctly
- The app should not create/open an empty buffer when the target file already exists
Additional information
Important note:
- This does not appear to be a project issue or a VS Code issue
- The file definitely exists and is readable
- Opening the same path manually in VS Code works
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗