anomalyco / anomalyco/opencode

[Desktop] Theme dropdown won't reopen immediately after selecting a theme

Open
#43,750 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 21, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

In the desktop app (Electron), the Theme dropdown in File → Settings → Appearance
(the selector below the Dark/Light mode toggle) stops opening immediately after a theme
is selected. It only opens again after clicking somewhere outside the selector first.

Steps to Reproduce
  1. Open the app → hamburger menu → File → Settings
  2. In the Appearance section, open the Theme dropdown and select any theme (this works fine)
  3. Immediately click the dropdown again to choose another theme
Expected Behavior

The dropdown reopens so another theme can be selected.

Actual Behavior

The dropdown does not open when clicked again immediately after selecting a theme.
Behavior differs depending on the state:

Before the second open attempt (right after selecting a theme): clicking anywhere
outside the selector first (anywhere in the settings body, or even right-clicking on
the chat canvas) keeps it working - the next click on the dropdown opens it normally.

Once the dropdown has failed to open (stuck state):

  • Left-clicking outside the selector no longer helps. At this point, only closing and
    reopening the Settings panel restores it.
  • Right-clicking directly on the selector does unlock it: a "Select all"
    text-selection affordance flashes for about a second (as if the control were being
    treated as plain HTML content), after which left-click opens the dropdown normally.
  • The AMOLED theme is exempt: after selecting it, the dropdown reopens normally
    without needing any of the above.
Workaround
  • To prevent it: click once outside the selector between theme selections.
  • If already stuck: right-click directly on the selector (ignore the brief "Select all"
    flash), then left-click to open - or close and reopen Settings entirely.

https://github.com/user-attachments/assets/03b5d2c5-421a-4d83-b237-406e0604593d

Additional Context

Speculation: after applying a theme, some focus/state in the settings UI seems to swallow
the next dropdown toggle. AMOLED may be exempt because it is handled differently from the
other themes (built-in/native vs. the rest).

Environment
  • App: OpenCode Desktop 1.18.19
  • OS: Windows 11 IoT Enterprise, Build 26200 (64-bit)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.