GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Add support for OpenTUI's new themeMode detection (Mode 2031) · Issue #13232 · anomalyco/opencode

[FEATURE]: Add support for OpenTUI's new themeMode detection (Mode 2031) #13232

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Add support for OpenTUI's new themeMode detection (Mode 2031)#13232
Copy link
Assignees
kommander
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@kavhnr
kavhnr
opened on Feb 12, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

OpenCode detects dark/light once at startup via OSC 11 luminance and never reacts to changes. Users who switch appearance mid-session have to restart or manually toggle.

We added Mode 2031 dark/light theme detection to OpenTUI in opentui#657 (shipped in v0.1.78, included in v0.1.79 which OpenCode is already on via #13036). The renderer.themeMode / renderer.on("theme_mode", ...) API is available but OpenCode doesn't use it yet.

This proposes integrating that API into OpenCode's theme system:

1. Tri-state mode (auto / dark / light) replacing the binary toggle. auto follows OS via Mode 2031, falling back to OSC 11 on unsupported terminals. dark / light are manual overrides.

2. Per-mode theme config (backward compatible):

// existing — works as before
{ "theme": "opencode" }

// new — different themes per mode
{ "theme": { "light": "github", "dark": "catppuccin" } }

3. Appearance selector in the existing theme dialog — ←/→ arrow keys cycle modes, clickable, reverts on cancel.

Mode 2031 is the same approach used by Neovim and Helix. Terminal-native, event-driven, zero overhead. Supported on Ghostty 1.0+, kitty 0.38.1+, Contour 0.4+, VTE 0.82+. Unsupported terminals silently ignore the sequences.

31 of 33 built-in themes have { dark, light } color variants and work out of the box. The two without (aura, ayu) are unaffected.

Previously requested via different approaches (this uses OpenTUI's new themeMode, which none of them had):

  • Support dark/light mode os sync #480 — dark/light mode OS sync
  • [FEATURE]: Light/Dark mode auto-switching #9697 — light/dark mode auto-switching
  • Different theme for light and dark mode #3244 — different theme for light and dark mode
  • Use dark mode theme when launching from NeoVim's terminal with light mode #11151 — dark mode in NeoVim's light terminal (manual override)
  • Updating system theme requires hard reboot to fix #1587 — system theme requires hard reboot
  • [BUG/FEATURE] Light Mode doesn't work in Zellij #4464 — light mode in Zellij (manual mode selector)
Reacted by Niklaas Baudet von Gersdorff, Adam Spiers, Rishabh Sambare and Doug Richardson

Activity

  1. kavhnr
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 12, 2026
  2. github-actions
    assigned
    kommander
    on Feb 12, 2026
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 12, 2026
  4. kavhnr
    closed this as completedon Feb 13, 2026
  5. kavhnr
    reopened this on Feb 25, 2026
  6. github-actions commented on Apr 27, 2026

    @github-actions
    github-actionsBot
    on Apr 27, 2026 – with GitHub Actions
    Contributor
    More actions

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

  7. github-actions
    closed this as not plannedon Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.