Uh oh!
There was an error while loading. Please reload this page.
feat(config): add theme mode override option - #14558
Conversation
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 <noreply@anthropic.com>
The following comment was made by an LLM, it may be inaccurate: I found potentially related PRs that may address similar theme mode functionality:
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. |
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 <noreply@anthropic.com>
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
kevinWangSheng
commented
Feb 22, 2026
Closing: duplicate of #7182 which implements the same dark/light/system appearance setting. |
Issue for this PR
Closes#4464
Type of change
What does this PR do?
Adds a
theme_modeconfig 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
lightordark, 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