Codex App: Set font for built-in terminal
What variant of Codex are you using?
App
What feature would you like to see?
Many developers use nerd fonts in their terminals, usually to support custom prompts like Oh my zsh or themes like powerline10k. The Codex app doesn't seem to have any way to set the font it uses for the integral terminal, so users will see a prompt line like this:
<img width="419" height="40" alt="Image" src="https://github.com/user-attachments/assets/643a9502-71d9-4c26-9df3-8a82b0815a63" />
The internal terminal also does not set the $TERM_PROGRAM environment variable. This can be used in .bashrc or .zshrc files to conditionally skip loading of custom prompts/themes in terminals that don't support custom fonts (like Apple_Terminal).
For devs with custom prompts/themes installed, either a font setting or a readable $TERM_PROGRAM env var will make the Codex App's internal terminal much more usable.
Additional information
_No response_
10 Comments
same issue, pls fix :(
Same issue here
same issue here, any solution?
I've done some digging through the codex and wezterm codebases but found no way to configure the font externally. Was hoping to find an environment variable or config file key, no dice.
This is easily fixable.
Docs: Codex uses the same Code font for diffs + integrated terminal
Codex’s integrated terminal uses the app’s Code font. If that isn’t a Nerd Font, Powerline + Nerd glyphs won’t render.
Codex App → Settings → Appearance → Code font
I have set mine to "MesloLGS NF", ui-monospace, "SFMono-Regular", Menlo, monospace
Make sure to install a Nerd Font first, but I assume one is already installed on your machines.
Happy tinkering!
<img width="884" height="240" alt="Image" src="https://github.com/user-attachments/assets/1a459f70-5774-4de9-b24e-5ce6bc082bac" />
@Zarathustraed Yeah it also worked for me.
<img width="1229" height="343" alt="Image" src="https://github.com/user-attachments/assets/497e4a82-d520-4c8c-9815-4259612e6bdf" />
Issue should now be closed by whomever has permission to do so.
@davidrea
Confirmed
In the settings of Codex (which has now been unified under ChatGPT, with Codex integrated into it), the Light theme and Dark theme have separate configurations. If you configure a Nerd Font for the Light theme but are currently using the Dark theme, the Nerd Font will definitely not display correctly. The proper approach is to configure the font for both themes.