Codex Desktop (from ms store) breaks file encoding and fails to save changes when files are inside folders with square brackets in the name
What version of the Codex App are you using (From “About Codex” dialog)?
NEW
What subscription do you have?
Plus
What platform is your computer?
Windows 11 x64 25H2
What issue are you seeing?
Hi,
I found a bug in Codex from ChatGPT.
When project files are located inside a directory whose name contains square brackets, for example:
[server]
Codex seems to have problems working with those files correctly.
What happens
file encoding gets broken/corrupted
saving changes may fail
in some cases Codex cannot properly write back modifications to the file
What steps can reproduce the bug?
Example
If the file is located in a path like:
[server]/somefile.ext
Codex may read it, but after editing it has trouble saving the changes correctly, or the file content ends up damaged because of encoding issues.
Expected behavior
Codex should handle folders with square brackets in their names normally and save edited files without changing encoding or corrupting content.
Actual behavior
Directories such as [server] appear to cause path handling or save/write issues, which leads to failed saves or broken file encoding.
Notes
This looks like the square brackets in the folder name may be incorrectly interpreted during file path handling.
Please investigate support for paths containing [ and ].
Thanks.
What is the expected behavior?
_No response_
Additional information
_No response_