orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug]: Codex TUI input area renders with black background only in Orca terminal on Windows light theme

Open mubeda opened this issue 5 months ago • 9 comments

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-256color
  • COLORTERM: 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

  1. Use Windows 11 with Windows theme set to Light.
  2. Set Orca theme to System.
  3. Open a worktree in Orca.
  4. Start Codex in the Orca integrated terminal.
  5. Run /theme inside Codex and select a light theme.
  6. Observe that the Codex composer/input area still renders as a black block.
  7. Run the same codex CLI outside Orca in Windows Terminal or PowerShell.
  8. 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 avatar Jun 22 '26 18:06 mubeda

@mubeda, does it still have the black input bg after you restart codex cli after switching the theme?

AmethystLiang avatar Jun 22 '26 18:06 AmethystLiang

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

mubeda avatar Jun 22 '26 18:06 mubeda

Image

mubeda avatar Jun 22 '26 18:06 mubeda

i am trying to identify if this has to do something with orca or a default behavior of codex/os

siddqamar avatar Jun 27 '26 14:06 siddqamar

i still have this issue in v1.4.104

mubeda avatar Jun 29 '26 13:06 mubeda

@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.

siddqamar avatar Jun 29 '26 16:06 siddqamar

Orca v1.4.110.0 Codex codex-cli 0.142.4

Image Image Image Image Image Image

I don't remember importing themes, but it could be.

mubeda avatar Jun 30 '26 12:06 mubeda

@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.

Image

However, I found that this setting can override the terminal theme. You can check it under Settings → Appearance → Terminal → Color Override. Hopefully this helps.

Image

siddqamar avatar Jul 06 '26 16:07 siddqamar

i just tried v1.4.124 and the problem is gone.

Image Image

mubeda avatar Jul 06 '26 16:07 mubeda