Skip to content

Theme detection fails to use dark variant despite OSC 11 returning dark background color #21870

Closed as not planned

Description

@owod24

Description

The catppuccin theme (and other themes with light/dark variants) always shows the light variant, even though OSC 11 queries return a dark background color from the terminal. This began happening today with no known configuration changes.
This appears to be related to issues #19254 and #20926.

Expected behavior:
Themes with dark/light variants should respect the terminal's dark background and display the dark variant based on OSC 11 response.
Actual behavior:
Always displays the light variant regardless of OSC 11 response.

Plugins

superpowers

OpenCode version

v1.4.1

Steps to reproduce

  1. Open opencode in cmux terminal (configured for dark mode)
  2. Select catppuccin theme via /theme command
  3. Observe that light variant (Latte) is shown instead of dark variant (Mocha)
    Diagnostic information:
  • OSC 11 query response: rgb:1e1e/1e1e/2e2e (dark background - confirmed dark)
  • cmux appearance mode: dark (confirmed in preferences)
  • Theme detection: works correctly with system theme

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

cmux

Activity

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

    @github-actions
    Contributor

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

    If your issue is distinct from the above, please add clarifying details explaining how it differs.

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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