anomalyco / anomalyco/opencode
`"theme": "system"` TUI black background flash on startup
@simonklee is already working on this.
Since Aug 15, 2026.
- 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
- Set the TUI theme to
systemin~/.config/opencode/cli.json:{ "theme": { "name": "system" } } - Launch
opencode2 --standalone. - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.