Skip to content

The default theme "dark" mode of the system has failed. #23521

Closed

Description

@cycle2zhou

Description

configuration:
Image
The system theme is dark, and the terminal is also dark. However, as soon as you open opencode, it automatically switches to a bright theme.

ghostty theme=GitHub Dark
The opencode 1.14.18 and previous versions are all functioning properly.
However, what's interesting is that this issue only occurred in Ghostty. The original terminal and iterm2 were both fine.

Plugins

No response

OpenCode version

1.14.19

Steps to reproduce

1.The system has been set to a dark theme.
2.Ghostty has also been set to a dark theme.
3.ghostty is running opencode

Screenshot and/or share link

Image

Operating System

macOS 26.4.1

Terminal

Ghostty

Activity

  1. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

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

    Please review those issues and add a comment there if your situation matches, rather than filing a new report. If your issue is distinct, feel free to clarify the differences.

  2. xHeaven commented on Apr 20, 2026

    @xHeaven
    Contributor

    I'm also experiencing this. Also, changing the theme inside opencode doesn't seem to be preserved as of 1.14.19, it snaps back to system on next restart (which is incorrectly light mode, Ghostty with dark theme) - in 1.14.18 there was no such issue.

  3. GHesericsu commented on Apr 20, 2026

    @GHesericsu

    I am experiencing this too. My system is dark but opencode cli keeps using light mode on any theme.

  4. Cliffback commented on Apr 20, 2026

    @Cliffback

    Same happens with me now after upgrading

  5. scotthaleen commented on Apr 20, 2026

    @scotthaleen

    Just updated and got flash banged. I also use system default dark mode and ghostty on osx

    opencode --version
    1.14.19
    

    Just found this on 𝕏 https://x.com/thdxr/status/2045175662130946205?s=20

    ctrl+p - Switch to dark mode - seems to at least get it back in to dark mode

    Image

    at least gets it back to dark mode.

  6. cycle2zhou commented on Apr 22, 2026

    @cycle2zhou
    Author

    1.14.20 fixed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions