Skip to content

refactor(tui): migrate diff viewer to V2 theme#37999

Merged
jlongster merged 1 commit into
v2from
migrate-diff-theme
Jul 20, 2026
Merged

refactor(tui): migrate diff viewer to V2 theme#37999
jlongster merged 1 commit into
v2from
migrate-diff-theme

Conversation

@jlongster

Copy link
Copy Markdown
Contributor

Summary

  • migrate the active diff viewer from the flat V1 palette to V2 property tokens
  • use dedicated V2 diff text, background, highlight, and line-number colors
  • render reviewed patches with neutral overlay surfaces
  • remove the V1-shaped file-tree theme prop and resolve theme context directly
  • migrate the help dialog and file-tree selection states

Verification

  • bun typecheck
  • bun test test/cli/tui/diff-viewer.test.tsx test/cli/tui/diff-viewer-file-tree.test.tsx --timeout 30000 (8 passed, 1 skipped)
  • git diff --check origin/v2...HEAD

@jlongster
jlongster merged commit a2c4c7a into v2 Jul 20, 2026
8 of 9 checks passed
@jlongster
jlongster deleted the migrate-diff-theme branch July 20, 2026 21:29
github-actions Bot pushed a commit to ReStranger/opencode that referenced this pull request Jul 20, 2026
* upstream/v2: (63 commits)
  feat(codemode): add Set method parity (anomalyco#38000)
  fix(core): match dev patch behavior (anomalyco#37709)
  refactor(tui): migrate diff viewer to V2 theme (anomalyco#37999)
  feat(ai): support image-guided generation (anomalyco#37998)
  feat(ai): add Z.ai image generation (anomalyco#37780)
  chore: merge dev into v2 (anomalyco#37996)
  refactor(tui): expose theme colors as properties (anomalyco#37995)
  feat(ai): add Google image generation (anomalyco#37781)
  fix(cli): isolate bun updater cache
  feat(ai): add xAI image generation (anomalyco#37778)
  feat(codemode): add groupBy parity (anomalyco#37992)
  refactor(ai): infer image provider options (anomalyco#37948)
  fix(core): ignore empty provider api keys
  feat(tui): add categorical theme hues (anomalyco#37985)
  refactor(core): inject models options
  refactor(server): inject database options
  fix(tui): make migrated selected background transparent (anomalyco#37967)
  feat(codemode): complete date parity (anomalyco#37960)
  feat(codemode): complete regexp and math parity (anomalyco#37955)
  fix(tui): adapt file badge accent to theme mode (anomalyco#37953)
  ...
github-actions Bot pushed a commit to ReStranger/opencode that referenced this pull request Jul 21, 2026
* upstream/v2: (65 commits)
  refactor(server): inject runtime options
  refactor(server): centralize server options
  feat(codemode): add Set method parity (anomalyco#38000)
  fix(core): match dev patch behavior (anomalyco#37709)
  refactor(tui): migrate diff viewer to V2 theme (anomalyco#37999)
  feat(ai): support image-guided generation (anomalyco#37998)
  feat(ai): add Z.ai image generation (anomalyco#37780)
  chore: merge dev into v2 (anomalyco#37996)
  refactor(tui): expose theme colors as properties (anomalyco#37995)
  feat(ai): add Google image generation (anomalyco#37781)
  fix(cli): isolate bun updater cache
  feat(ai): add xAI image generation (anomalyco#37778)
  feat(codemode): add groupBy parity (anomalyco#37992)
  refactor(ai): infer image provider options (anomalyco#37948)
  fix(core): ignore empty provider api keys
  feat(tui): add categorical theme hues (anomalyco#37985)
  refactor(core): inject models options
  refactor(server): inject database options
  fix(tui): make migrated selected background transparent (anomalyco#37967)
  feat(codemode): complete date parity (anomalyco#37960)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant