Skip to content

fix(tui): set explicit opencode theme in container tui.json#170

Draft
thejoeejoee wants to merge 2 commits into
fix/windows-ptyfrom
fix/theme-injection
Draft

fix(tui): set explicit opencode theme in container tui.json#170
thejoeejoee wants to merge 2 commits into
fix/windows-ptyfrom
fix/theme-injection

Conversation

@thejoeejoee

Copy link
Copy Markdown
Collaborator

Linux containers fall back to the system theme (neutral gray scale from terminal background) because they lack macOS dark mode detection APIs (NSAppearance). This produces washed-out colors compared to macOS.

Force the opencode theme explicitly in the generated tui.json so containers render with the same GitHub Dark palette that macOS uses natively.

Linux containers fall back to the system theme (neutral gray scale)
because they lack macOS dark mode detection APIs. Force the opencode
theme to match macOS rendering.
OpenCode queries terminal ANSI palette via OSC 4 to generate background
colors. Docker exec round-trip latency causes the probe to time out,
producing neutral gray backgrounds instead of the expected blue-tinted
opencode theme.

Intercept OSC 4 queries in container stdout and respond immediately with
the GitHub Dark palette (matching the opencode theme). Queries for colors
0-15 are suppressed from terminal output to prevent double responses.
@thejoeejoee thejoeejoee marked this pull request as draft May 20, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant