fix(tui): set explicit opencode theme in container tui.json#170
Draft
thejoeejoee wants to merge 2 commits into
Draft
fix(tui): set explicit opencode theme in container tui.json#170thejoeejoee wants to merge 2 commits into
thejoeejoee wants to merge 2 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linux containers fall back to the
systemtheme (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
opencodetheme explicitly in the generatedtui.jsonso containers render with the same GitHub Dark palette that macOS uses natively.