File tree labels are overly truncated even when there is enough horizontal space
What version of the Codex App are you using (From “About Codex” dialog)?
26.422.8496.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
File and folder names in the Codex App file tree are overly truncated with a middle ellipsis, even though the file tree panel has enough horizontal space.
Examples from the “All files” tree:
componentsis displayed ascompr.....entsnode_modulesis displayed asnode_.....dulespackage.jsonis displayed aspackag.....onREADME.mdis displayed asREADM.....dpostcss.config.mjsis displayed aspostcss.confi.....jstsconfig.tsbuildinfois displayed astsconfig.....uildinfo
This makes the file tree hard to use because many common file names become ambiguous.
What steps can reproduce the bug?
- Open Codex App on Windows.
- Open a local repository.
- Open the file tree / “All files” panel.
- Observe that file and folder names are truncated with a middle ellipsis even when there is enough horizontal space in the panel.
- Switch the app language to English and reset the UI font to the default.
- Reopen the file tree and observe that the issue still happens.
What is the expected behavior?
The file tree should use the available horizontal space before truncating labels.
Short file and folder names such as components, package.json, README.md, and middleware.ts should be displayed fully when the panel has enough room.
Additional information
I initially noticed this with the Japanese UI and a custom UI font, but the issue still reproduces after switching the app language to English and resetting the UI font to the default.
Environment:
- Codex App version:
26.422.8496.0 - OS: Windows
- UI language: English
- UI font: default
- Theme: Tokyo Night
Screenshots attached.
<img width="1920" height="1020" alt="Image" src="https://github.com/user-attachments/assets/31e30df9-ab2e-40ac-8e2d-196c169136c1" />
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This looks related, but I think my issue may be a different bug rather than only a request for a resizable sidebar.
In my case, the file tree panel has enough horizontal space, but even relatively short names are aggressively truncated with a middle ellipsis.
Examples:
componentsis displayed ascompr.....entspackage.jsonis displayed aspackag.....onREADME.mdis displayed asREADM.....dpostcss.config.mjsis displayed aspostcss.confi.....jsSo making the sidebar resizable would help as a workaround, but the main issue seems to be that the label width / truncation calculation is too small.
Environment:
26.422.8496.0I also submitted in-app feedback for this:
86383ad0-5b32-4619-a4ea-c219bd4f7185same on the mac app
Same. The truncation is incredibly over aggressive. In fact, not only does it truncate when there's no need, but the truncated version is _longer than the original._ In the screenshot, the last entry is just
00-index.mdbut the truncated version is00-inde......d<img width="372" height="285" alt="Image" src="https://github.com/user-attachments/assets/789107f8-1506-49d3-9727-eeb05d52b28b" />
it has been fixed.
version 26.616.30709 on macos
hallelujah