GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(config): add theme mode override option by kevinWangSheng · Pull Request #14558 · anomalyco/opencode

Conversation

@kevinWangSheng

@kevinWangSheng kevinWangSheng commented Feb 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #4464

Type of change

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

What does this PR do?

Adds a theme_mode config option (light / dark / system) so users can override terminal theme auto-detection. Terminals like Zellij and JetBrains IDEs misreport the system theme, making the TUI unreadable.

When set to light or dark, the config value takes priority over terminal detection.

How did you verify your code works?

Set theme_mode: "light" in opencode.json and verified the TUI renders in light mode regardless of terminal setting.

Screenshots / recordings

N/A - would need specific terminal to demo.

Checklist

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shenghui kevin @claude shenghui kevin
feat(config): add theme mode override option
3618aa5
Allow users to manually set light/dark mode via the `theme_mode` config
option, bypassing terminal auto-detection. This fixes issues with terminals
(Zellij, JetBrains IDEs) that misreport the system theme.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Feb 21, 2026
@github-actions

github-actions Bot commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

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

I found potentially related PRs that may address similar theme mode functionality:

  1. PR feat(tui): add appearance setting with dark/light/system modes #7182 - feat(tui): add appearance setting with dark/light/system modes

    • This appears to be directly related - it adds dark/light/system mode selection similar to the current PR
  2. PR feat(tui): add system dark/light mode matching #9719 - feat(tui): add system dark/light mode matching

    • This also relates to system dark/light mode detection, which overlaps with the theme detection logic in the current PR

These PRs should be reviewed to determine if they address the same issue or if there's overlap in functionality. PR #7182 in particular seems to have very similar goals to the current PR #14558.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shenghui kevin @claude shenghui kevin
fix: add theme_mode to SDK types and remove unnecessary cast
7e1fcb3
The Config type in the SDK did not include the new theme_mode field,
which would cause a typecheck failure. Added the field to both v1 and v2
SDK generated types and removed the `as` cast in theme.tsx since the
type now properly includes the property.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Feb 21, 2026
@github-actions

github-actions Bot commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kevinWangSheng

kevinWangSheng commented Feb 22, 2026

Copy link
Copy Markdown
Contributor Author

Closing: duplicate of #7182 which implements the same dark/light/system appearance setting.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kevinWangSheng kevinWangSheng closed this Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[BUG/FEATURE] Light Mode doesn't work in Zellij

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@kevinWangSheng
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.