Codex cannot see symlinked files or directories in workspace
Open 💬 4 comments Opened Apr 17, 2026 by mingxu1031
What version of the Codex App are you using (From “About Codex” dialog)?
26.415.21839 (build 1763)
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
When I open a folder as a Codex workspace, symlinked files or directories inside that folder do not show up in the file tree.
The symlinks are valid and work normally in the shell, but Codex behaves as if they do not exist.
<img width="600" height="922" alt="Image" src="https://github.com/user-attachments/assets/4a479e0a-f895-4a55-a56c-4489b8d85bcd" />
<img width="928" height="442" alt="Image" src="https://github.com/user-attachments/assets/6378f528-97db-42d1-b0db-66671a31d4f9" />
What steps can reproduce the bug?
- Create a folder outside the workspace, for example
real-dir, and put a file in it. - Create another folder that will be opened as the Codex workspace.
- Inside that workspace folder, create a symlink to the external file or directory.
- Open the workspace folder in Codex.
- Check the file tree.
The symlinked file or directory does not appear in the file tree.
What is the expected behavior?
Symlinked files and directories inside the workspace should be visible in the file tree and accessible from Codex.
Additional information
_No response_
4 Comments
This would be nice to have. I'm assuming if this were fixed, you could also @ mention files inside a symlinked dir.
in my case, the issue only affects visibility in the file tree/sidebar.
@mentions still work for files inside the symlinked directory, so Codex can reference them that way.Interesting. Maybe the issue I mentioned is specific to Windows for some reason 🤷
I can also reproduce this with a minimal, privacy-safe setup on macOS where the symlink target is outside the opened workspace.
Then open
/tmp/codex-workspacein Codex Desktop.Observed:
This creates a confusing mismatch between the actual workspace filesystem and what the Desktop UI presents. It is especially painful for a common “workspace hub” pattern: a small workspace folder contains symlinked entry points to larger local source/document directories. The current behavior makes that pattern usable from the shell/agent but not discoverable in the UI.
Expected behavior: the file tree should show valid symlinked files/directories, ideally with a symlink indicator, or provide a setting to show/follow workspace symlinks.