[Desktop] Open in Finder fails for URL-encoded local paths (Chinese filenames)
What version of the Codex App are you using (From “About Codex” dialog)?
Codex Desktop (UI bug in desktop app). codex-cli 0.107.0-alpha.5
What subscription do you have?
ChatGPT Pro
What platform is your computer?
macOS 26.3 (Build 25D125) Darwin 25.3.0 arm64
What issue are you seeing?
In Codex Desktop, local file links that contain Chinese characters are rendered as URL-encoded paths (%E7...).
When clicking the link and choosing Open in Finder, Finder fails to open the file.
This appears to be a URI-to-filesystem path handling bug: the encoded URI path is not decoded before invoking Finder.
What steps can reproduce the bug?
- Create a file with a Chinese path, e.g.:
/Users/xxx/workspace/中文/中文测试.md
- In Codex Desktop chat, output a Markdown local-file link to that file.
- Observe the link target shown as URL-encoded (
%E7...). - Click the link and choose Open in Finder.
What is the expected behavior?
Codex Desktop should decode percent-encoded local paths before calling Finder, so files with Chinese (or other non-ASCII) path segments open correctly.
Additional information
Verification from shell:
- Encoded path does not exist:
encoded_missing
- Decoded Chinese path exists:
decoded_exists
This confirms the file exists and the failure is in path decoding/launch logic, not missing file data.
10 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I am seeing what looks like the same non-ASCII local-path encoding problem in the Windows Codex desktop app as well.
Related active Windows issue: #14079.
Additional detail from the Windows side:
%...) and does not open correctlySo this looks like a cross-platform member of the same bug family: local file link targets are being passed around in encoded form without being converted back into a usable filesystem path before the open action.
For cross-reference, this non-ASCII local-path encoding issue also appears related to:
c:\\C:\\...pathsFrom current repros, #14079 looks like the broader active tracker, while this issue captures the non-ASCII / percent-encoding side of the same local-file-link bug family.
<img width="631" height="276" alt="Image" src="https://github.com/user-attachments/assets/6b7e5747-778b-4664-a022-aca438be6bad" />
And it will leave URL-encoded folders on disk.
I should mention that this happens with spaces as well. So for any project that happens to have a space anywhere, any links that codex generates to particular files are unusable because they contain %20 encodings.
Confirming this on macOS as well.
Environment:
What I reproduced:
Open in Finderdoes nothing useful.Copy pathreturns a percent-encoded filesystem path instead of the real local path.Concrete example from a failing item:
The actual path on disk is the decoded one:
Local verification:
open -R <encoded path>: fails with "The file ... does not exist."open -R <decoded path>: succeedsSo on macOS this is not a Finder problem. The failing condition is that the app is handing Finder a URL-encoded local filesystem path instead of a decoded path.
Impact:
Open in Finderbreaks for affected linksCopy pathalso produces a path that is not directly usable in Finder or the shellAdding another macOS reproduction with a Japanese filename.
Environment:
What I’m seeing:
配布版_強化版.pdf.%E9%85%8D....Expected:
Codex should decode percent-encoded local file paths before handing them to the open/copy/Finder path handling layer, so Japanese filenames work the same way as English filenames.
Screenshot:
!Japanese filename local file link hover shows percent-encoded target
Additional current macOS reproduction on a newer Codex Desktop build.
Environment
26.616.51431421226.5.1(25F80)arm64What still reproduces
This is still reproducible for local paths containing either:
User-visible regression:
%E4%B8%AD.../%20to the filesystem/Finder layer instead of decoding it back to the real local path first.Minimal local verification
Created a local test file under a path containing both Chinese characters and spaces:
The decoded filesystem path exists:
The URL-encoded filesystem-looking path does not exist:
Expected behavior
Before invoking Finder / "Open in Finder" / open-folder handling, Codex Desktop should convert URL/path targets to native filesystem paths exactly once:
%E4...segments to Unicode path segments%20to spacesThis should apply to both file and folder links.
Follow-up with a macOS control test that isolates this from Finder/macOS itself.
Using the same test file under a path containing both Chinese characters and spaces:
I tested three inputs to macOS
open -R:So macOS/Finder can open:
file://URL containing percent encodingIt fails only when the percent-encoded URL path is passed as a native filesystem path.
That points to Codex Desktop needing to normalize at the boundary:
file://...links, convert with URL/file-URL semantics into a native path before calling Finder%20/%E4...strings toopen -Ror Electron's Finder/open-path equivalentAdditional directory-specific finding.
The previous control test covered file reveal behavior. Directory opening has a slightly different failure mode.
In a user-facing terminal repro, direct directory open can fail when the directory path ends with a trailing slash:
Observed behavior:
openexits with status0/Users/<user>/) instead of the target directoryThe same user reports that removing the trailing slash from the same directory path makes it open correctly in their normal terminal.
From the Codex-controlled diagnostic shell, I could reproduce the "returns to home" behavior for the directory-open path. The exact trailing-slash/no-trailing-slash split appears environment-sensitive, but it still points at a missing path-normalization step before calling Finder/LaunchServices.
Controls:
openworks for a Chinese + space directory under/private/tmp.openworks for top-level locations like/Applications,~/Downloads, and~/Desktop.openfails for multiple~/Documents/*subdirectories by returning to home.open -Rworks for the same deep target directory when revealing it:So there are two related but distinct path handling issues:
open -R/ Finder reveal / platform equivalent) may be more reliable than directopen <directory>in this protected~/Documentssubtree.Suggested app-side behavior:
path.normalize/ strip trailing separator except filesystem root), then reveal/open it using Finder reveal semantics, not a shell-opened URL-encoded path.