FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(theme): alias pre-2.0.9 text token names by cestercian · Pull Request #49937 · anomalyco/opencode · GitHub

fix(theme): alias pre-2.0.9 text token names - #49937

Open
cestercian wants to merge 1 commit into
anomalyco:v2from
cestercian:cursor/theme-token-aliases-ad9a
Open

cestercian wants to merge 1 commit into
anomalyco:v2from
cestercian:cursor/theme-token-aliases-ad9a

Conversation

Copy link
Copy Markdown

Issue for this PR

Fixes #49922

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

OpenCode 2.0.9 renamed resolved theme tokens (text.subdued → text.muted, text.feedback.<kind>.default → text.feedback.<kind>.base) without keeping aliases. TUI plugins that still look up the old names get undefined, and OpenTUI falls back to the terminal default foreground.

After resolving a theme, this copies the new colors onto the old names on the resolved object plugins read:

  • text.subdued → same RGBA as text.muted
  • text.feedback.<kind>.default → same RGBA as text.feedback.<kind>.base (error / warning / success / info)

Schema/input tokens are unchanged. Dialog surfaces pick up the aliases through the same resolve path.

How did you verify your code works?

From packages/theme:

  • bun test — 4 pass
  • bun typecheck — pass

From packages/tui:

  • bun test test/theme — 47 pass

Screenshots / recordings

N/A — token equality covered by unit tests.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Keep text.subdued and text.feedback.<kind>.default on the resolved
theme so TUI plugins that still look up the old names get the same
colors as text.muted and text.feedback.<kind>.base.

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL