Uh oh!
There was an error while loading. Please reload this page.
fix(tui): preserve system palette colors - #37537
Conversation
e4b75d3 to
212d679CompareReworked this around the native seam: |
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
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)