Skip to content

Chosen theme not persisted #27784

Closed
Closed

Description

@stephfh

Description

Hi!

In v1.15 the theme chosen via /themes doesn't seem to be persisted and only seems to be active for the current session.

Steps to reproduce:

  1. Launch opencode
  2. /themes and choose a theme (system in my case) => theme active
  3. close opencode and relaunch => default theme active again

Versions:

Opencode: 1.15
Terminal: Ghostty, v1.3.1
Operating System: macOS 26.5

I also set "theme": "system" in my opencode.json (according to the docs). Weirdly enough I don't see the property in the output of opencode debug config, but it seems to be set correctly in ~/.local/state/opencode/kv.json (at least I see a "theme": "system" in there).

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 15, 2026

    @github-actions
    Contributor

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

    If this is a regression or the fix didn't hold, please mention that in the issue so maintainers can investigate accordingly.

  2. Arjith8 commented on May 15, 2026

    @Arjith8

    theme should be mentioned in tui.json check link

    Also are u using any terminal multiplexer since I use tmux I dont have system option in /themes I can only see it when i use just ghostty

    Also did u see same issues on non-system theme too?

  3. stephfh commented on May 15, 2026

    @stephfh
    Author

    Hi @Arjith8 ,

    oh, weird. I must've been looking at the wrong part of the docs, I was looking at: https://opencode.ai/docs/de/themes/#theme-verwenden, doesn't mention the tui.json there.

    It was indeed set (wrongly) in tui.json, changed it and seems to work now!

    Sorry for the false alarm. :D

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions