Use dark mode theme when launching from NeoVim's terminal with light mode #7958

Open
opened 2026-02-16 18:08:46 -05:00 by yindo · 2 comments
Owner

Originally created by @tamlok on GitHub (Jan 29, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

  1. Windows Terminal is configured to use light mode theme.
  2. Running opencode directly in Windows Terminal results in the usage of light mode theme in opencode.
  3. Neovim forces to use light background.
  4. Runs opencode in Neovim terminal, resultings in the usgae of dark mode theme in opencode.

Could we add an option to force using of the light mode of theme? Just like Neovim setting background to light or dark.

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

  1. Windows Terminal with light theme
  2. Neovim with light mode.
  3. Run opencode within the terminal of Neovim.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @tamlok on GitHub (Jan 29, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 1. Windows Terminal is configured to use light mode theme. 2. Running opencode directly in Windows Terminal results in the usage of light mode theme in opencode. 3. Neovim forces to use light background. 4. Runs opencode in Neovim terminal, resultings in the usgae of **dark** mode theme in opencode. Could we add an option to force using of the light mode of theme? Just like Neovim setting background to light or dark. ### Plugins _No response_ ### OpenCode version 1.1.25 ### Steps to reproduce 1. Windows Terminal with light theme 2. Neovim with light mode. 3. Run opencode within the terminal of Neovim. ### Screenshot and/or share link <img width="3812" height="2052" alt="Image" src="https://github.com/user-attachments/assets/befd3e88-bd30-4944-a946-11f7a3c0ecd6" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsopentuibug labels 2026-02-16 18:08:46 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9697: [FEATURE]: Light/Dark mode auto-switching - Describes the same core issue where OpenCode doesn't detect or respect the terminal/system's light or dark mode preference

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #9697: [FEATURE]: Light/Dark mode auto-switching - Describes the same core issue where OpenCode doesn't detect or respect the terminal/system's light or dark mode preference Feel free to ignore if none of these address your specific case.
Author
Owner

@tamlok commented on GitHub (Jan 29, 2026):

No, they are not the same. If auto-detection is lacked or not working well, we need a way to specify it manually.

@tamlok commented on GitHub (Jan 29, 2026): No, they are not the same. If auto-detection is lacked or not working well, we need a way to specify it manually.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7958