codex - 💡(How to fix) Fix Input box remain dark after the system theme turn to light [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18942Fetched 2026-04-23 07:32:58
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.122.0

What subscription do you have?

plus

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 25.3.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Ghostty + Tmux

What issue are you seeing?

After the system switch to light theme in another day morning, the input box of the codex cli is still in dark mode(last night is in dark mode). I have to /exit codex and reopen it again, the input box turns to light theme.

What steps can reproduce the bug?

  1. Switch to dark mode in mac, and open codex: <img width="701" height="168" alt="Image" src="https://github.com/user-attachments/assets/20ed7b47-eb3f-41a6-945f-d64ad51405be" />
  2. then switch to light mode, and you will see the input box stay dark: <img width="724" height="295" alt="Image" src="https://github.com/user-attachments/assets/c3c46d45-02a9-4cff-888b-c390d3de96a4" />

What is the expected behavior?

No response

Additional information

No response

extent analysis

TL;DR

The issue can likely be resolved by updating the Codex CLI to handle theme changes dynamically or by manually restarting the Codex CLI after switching themes.

Guidance

  • The issue seems to be related to the Codex CLI not updating its theme when the system theme changes, suggesting a potential bug in the CLI's theme handling logic.
  • To verify if the issue is specific to the gpt-5.4 model, try reproducing the bug with a different model to see if the behavior persists.
  • As a temporary workaround, restarting the Codex CLI after switching themes, as the user has already discovered, can mitigate the issue.
  • Investigate if there are any configuration options or environment variables that can be set to force the Codex CLI to follow the system theme.

Example

No specific code example can be provided without more information on the Codex CLI's internal workings or its configuration options.

Notes

The solution might depend on the specifics of how the Codex CLI handles themes and system theme changes, which is not detailed in the issue. Additionally, the behavior of other terminal emulators or platforms might differ.

Recommendation

Apply workaround: Restart the Codex CLI after switching themes, as this has been confirmed to resolve the issue temporarily, until a more permanent fix is available or the CLI is updated to handle theme changes dynamically.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING