Skip to content

System Theme no longer shows through system colors #23599

Closed

Description

@ktwbc
Image

Description

System was the one theme that let the terminal's default colors show through but the most recent change broke that.

Plugins

No response

OpenCode version

1.14.19

Steps to reproduce

  1. set up wezterm.lua with the following config to color the terminal:
local wezterm = require 'wezterm'
local config = wezterm.config_builder()

-- "trad" color scheme, converted from iTerm2 trad.json
config.color_schemes = {
  ['trad'] = {
    foreground = '#F4FFF7',
    background = '#44406F',

    cursor_bg = '#FFEE3E',
    cursor_fg = '#000000',
    cursor_border = '#FFEE3E',

    selection_bg = '#9D7400',
    selection_fg = '#E7EBED',

    ansi = {
      '#435B67', -- black   (0)
      '#FC3841', -- red     (1)
      '#5CF19E', -- green   (2)
      '#FED032', -- yellow  (3)
      '#37B6FF', -- blue    (4)
      '#FC226E', -- magenta (5)
      '#59FFD1', -- cyan    (6)
      '#FFFFFF', -- white   (7)
    },

    brights = {
      '#A1B0B8', -- bright black   (8)
      '#FC746D', -- bright red     (9)
      '#ADF7BE', -- bright green   (10)
      '#FEE16C', -- bright yellow  (11)
      '#70CFFF', -- bright blue    (12)
      '#FC669B', -- bright magenta (13)
      '#9AFFE6', -- bright cyan    (14)
      '#FFFFFF', -- bright white   (15)
    },
  },
}

config.color_scheme = 'trad'

return config
  1. restart a window of wezterm, color background should be a darker blue.
  2. start opencode
  3. set theme to System
    in prior versions, the blue backgroudn and coloring of wezterm would be seen still in opencode. Latest update now blocks all that out.

Screenshot and/or share link

Screenshot is of what it looked like BEFORE upgrade, now i get black background.

Operating System

MacOS

Terminal

wezterm

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 20, 2026
  2. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

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

  3. pinkli commented on Apr 21, 2026

    @pinkli

    my opencode version 1.14.19 with theme "system" in Ghostty terminal themed "Borland" has the same issue, it doesn't show a blue bgcolor nor a light text color, and it makes the visual totally unusable. I have to change the opencode theme to another one to see clear the tui.

    Image
  4. sumbad commented on Apr 21, 2026

    @sumbad

    I had the same issue with white color inside opencode opened with ghostty

    Image
  5. jwkicklighter commented on Apr 21, 2026

    @jwkicklighter

    Same issue here in Ghostty with 1.14.19, with or without Tmux. Was previously working.

  6. souvikpng commented on Apr 21, 2026

    @souvikpng

    I can corroborate this. Right is terminal and how it's supposed to look like with the brown background; middle is opencode with theme set to system. If I switch to another theme and back to system, it gets a purple background or some variant of it resembling my periwinkle accent colors.

    Image Image
  7. Alxndr3 commented on Apr 21, 2026

    @Alxndr3

    For me, system theme transparency is also broken when running Opencode inside Alacritty + Tmux on version 1.14.x.

    With the lucent-orng theme (and others), the background becomes solid/opaque instead of showing the terminal's system theme.

    It was working fine in previous versions, eg. 1.4.11.

    Environment:

    Alacritty: 0.18.0
    Tmux: 3.6a
    OS: Debian 12
    
    Image Image
  8. zxsleebu commented on Apr 21, 2026

    @zxsleebu

    same issue. 1.14.18 was fine. that's degradation in 1.14.19

  9. ktwbc commented on Apr 21, 2026

    @ktwbc
    Author

    fixed in v1.14.20

  10. uloco commented on Apr 22, 2026

    @uloco

    there is no system theme for me... did this get removed on mac?

  11. jwkicklighter commented on Apr 23, 2026

    @jwkicklighter

    It's working correctly for me on Mac both in Ghostty and in tmux within Ghostty. Version 1.14.21

    Image
  12. uloco commented on Aug 21, 2026

    @uloco

    @ktwbc i still don't have system theme in my chooser. i am on macOS and version: 1.18.19. I have to switch light dark theme mode every day back and forth because neovim does not forward osc 11 to my sidekick terminal. this would solve all issues regarding theme switching... is there anything i can do on my side? ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions