[Bug]: Codex TUI input area renders with black background only in Orca terminal on Windows light theme
Operating system
Windows
Orca version
v1.4.91.0
Details
Summary
When running OpenAI Codex CLI inside Orca’s integrated terminal on Windows 11 with a light/system theme, the Codex TUI composer/input area renders as a large black rectangle. The same Codex CLI session does not show this problem when run outside Orca in Windows Terminal/PowerShell.
This appears isolated to Orca’s embedded terminal rendering/palette handling rather than Codex itself.
Environment
- OS: Windows 11
- Windows theme: Light
- Orca theme: System
- Orca terminal shell: PowerShell
- Orca terminal settings: I do not see a Terminal Theme section/control under Settings → Terminal
- Codex CLI version:
codex-cli 0.141.0 TERM:xterm-256colorCOLORTERM:truecolor- Codex model:
gpt-5.5 - Codex reasoning effort:
high
What happened
Inside Orca, Codex opens normally, but the Codex TUI input/composer area is rendered with a black background even though the surrounding UI and terminal are light-themed.
The black area is visible around the active input line/prompt area. Changing Codex /theme to a light theme did not fix the issue.
Expected behavior
The Codex TUI should render consistently with the light terminal/app theme, or at least should not show a black composer/input block when the rest of the terminal is light.
Actual behavior
The Codex TUI composer/input area remains black inside Orca’s terminal.
Reproduction steps
- Use Windows 11 with Windows theme set to Light.
- Set Orca theme to System.
- Open a worktree in Orca.
- Start Codex in the Orca integrated terminal.
- Run
/themeinside Codex and select a light theme. - Observe that the Codex composer/input area still renders as a black block.
- Run the same
codexCLI outside Orca in Windows Terminal or PowerShell. - Observe that the issue does not occur outside Orca.
Isolation already performed
The issue appears only in Orca:
codex --version
# codex-cli 0.141.0
$env:TERM
# xterm-256color
$env:COLORTERM
# truecolor
@mubeda, does it still have the black input bg after you restart codex cli after switching the theme?
yes, i tried all combinations between codex theme changes and Orca Appearance settings. same problem. App restart, Codex restart, OS restart do not solved the problem. I have no issues with theme running codex outside orca
i am trying to identify if this has to do something with orca or a default behavior of codex/os
i still have this issue in v1.4.104
@mubeda Thanks for confirming. I checked the release timeline and v1.4.104 does include the terminal color-query fix from #6502, so this is not just a stale-build issue.
I’m going to keep investigating because #6502 proves Orca replies to OSC 10/11 foreground/background queries, but it may not fully cover the exact Codex startup/render path shown in your screenshot. The screenshot is useful because the surrounding terminal area appears light while Codex’s TUI region is still dark.
Could you share:
- a fresh screenshot from
v1.4.104 - your
codex --version - your Orca Settings -> Terminal -> Terminal Themes state
- whether you imported a custom terminal theme in Orca
I’ll try to reproduce against that exact setup and report back with either a repro or a narrower fix.
Orca v1.4.110.0 Codex codex-cli 0.142.4
I don't remember importing themes, but it could be.
@mubeda thanks for sharing the details. I tried reproducing this on Windows, and light mode appears to work correctly for both the app itself and the development server started with pnpm dev.
However, I found that this setting can override the terminal theme. You can check it under Settings → Appearance → Terminal → Color Override. Hopefully this helps.
i just tried v1.4.124 and the problem is gone.