anomalyco / anomalyco/opencode

`"theme": "system"` TUI black background flash on startup

Open
#42,742 0 comments 1 reaction 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 15, 2026.

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

Description

Description

With "theme": "system" the TUI flashes a black (unthemed) background for ~1s on startup, then repaints with the correct theme. Reproduces in opencode2 --standalone, so it is not related to the background service. Appears to be a regression of the V1 issue #4472 (fixed by PR #5842) in the rewritten V2 TUI.

Plugins

n/a

OpenCode version

opencode2 v0.0.0-next-17444

Steps to reproduce
  1. Set the TUI theme to system in ~/.config/opencode/cli.json:
    { "theme": { "name": "system" } }
    
  2. Launch opencode2 --standalone.
  3. Observe the screen: it shows a solid black (terminal-default) background for ~1 second, then repaints with the system theme colors.
Screenshot and/or share link

https://github.com/user-attachments/assets/454e676c-88c8-46bc-83b8-8a0f77b370ff

Operating System

Linux 7.1.4-arch1-1 (Arch), x86_64

Terminal

Alacritty (default black background, no explicit colors configured). TERM=xterm-256color, COLORTERM=truecolor. Reproduces both directly in Alacritty and inside tmux (TERM_PROGRAM=tmux)

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.