fix(tui): preserve system palette colors#37537
Open
opencode-agent[bot] wants to merge 1 commit into
Open
Conversation
opencode-agent
Bot
force-pushed
the
system-theme-v2
branch
from
July 17, 2026 19:51
e4b75d3 to
212d679
Compare
Contributor
Author
|
Reworked this around the native seam: |
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.
Summary
system.tsBefore / after
The generic V1 migration synthesized darker shades that do not exist in the terminal palette. With a Tokyo Night terminal palette:
#a485db→#bb9af7#306a8a→#7dcfffOpenCode Drive before/after/pixel-diff comparison
The visual comparison uses the real TUI at 100×30 with a generated Tokyo Night system palette seeded through the normal custom-theme loader. OpenCode Drive's simulated terminal does not answer OSC palette queries, so direct native-system generation is additionally covered by
test/theme/system.test.ts.Checks
bun test test/theme/system.test.ts test/theme/v2/v1-migrate.test.tsbun typecheck(frompackages/tui)git diff --checkRequested by: @kitlangton (Kit Langton via Slack)