Diffs invisible on light mode, regardless of theme
Description
Hi, edits have become illegible on my light-mode terminal. All/most diffs colors seem to be baked to white, so only on dark backgrounds they become legible.
Here using the GitHub theme,
OpenCode version
1.0.121
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Debian 12
Terminal
xcfe4-terminal
This issue might be a duplicate of existing issues. Please check:
- #4666: Bug: Highlighted text invisible with transparent custom themes
- #4427: System theme (regression in 1.0.69 with foreground text rendering issues)
Feel free to ignore if none of these address your specific case.
Got the same problem. Using opencode v1.0.125, Ghostty 1.2.3, macOS Sequoia 15.7.1
I think this is the same problem that I'm having, except I can't see anything at all, my install is mostly unusable.
This is 1.0.127; switching between "light mode" and "dark mode" in the menu doesn't do anything.
If I switch the whole system to light mode, it is still extremely low contrast:
What terminal and theme are you using?
In my case I'm using catppuccin latte for both iterm2 and opencode.
@rekram1-node Just the "System" theme, but no theme is readable. This is the "solarized" theme:
This looks like you are using terminals that do not support truecolor (xcfe4-terminal and built-in macos terminal before Sequoia). Opentui and therefor opencode does currently not support non-truecolor terminals. This will come, but might be a while. In the mean time I can only suggest you use a terminal that supports truecolor like Ghostty, Kitty, Alacritty, iTerm2 etc.
@kommander I'm using Ghostty 1.2.3 with the Alabaster theme and macOS Sequoia 15.7.1, but I still can't see diffs for some files. I've tried changing Ghostty and opencode themes, but the result is still the same.
I have no problem with .md files, but diffs for .sql, .sh, .dbml are invisible. Maybe there is the same issue with different files, but I didn't check that.
Also, I can't see the title in the "Rename session" dialog.
This is so weird, in ghostty it works fine for me for anything that does not have a parser like .vim files.
Can you try with bunx opencode-ai@snapshot-kmdr-debug?
This looks like you are using terminals that do not support truecolor (xcfe4-terminal and built-in macos terminal before Sequoia). Opentui and therefor opencode does currently not support non-truecolor terminals. This will come, but might be a while. In the mean time I can only suggest you use a terminal that supports truecolor like Ghostty, Kitty, Alacritty, iTerm2 etc.
Hi, I tried, with Alacritty, but no luck,
this is the GitHub theme, running opencode 1.0.134.
Did you try running bunx opencode-ai@snapshot-kmdr-debug?
Did you try running
bunx opencode-ai@snapshot-kmdr-debug?
I'm testing bunx opencode-ai@snapshot-kmdr-debug
OS: macOS Tahoe 26.0.1
Host: MacBook Air M1, 2020
Shell: zsh 5.9
Terminal: ghostty 1.2.3
COLORTERM: truecolor (tested with echo $COLORTERM)
Using the OpenCode theme here
The tested file has no extension (bash script)
It was reproduced
I changed the dark/light by "toggle appearance"
I asked them to cat the file in plan mode.
Also, I see a similar issue with "no matching items"
@kommander I've tried your snapshot, but the result is still the same. It works on write, but it's unreadable on edit. Here are screenshots from opencode-ai@snapshot-kmdr-debug
Could you please try again with bunx opencode-ai@snapshot-kmdr-debug? Trying a different fix now.
@kommander It's working!!!!! Although, "no matching files" issue persists
@kommander Yeah, this has resolved my problem with diffs, thanks!
But I still get unreadable parts of interface, like "No matching items" or "Rename session" dialog.
Okay, I'll check the other issues as well and bring that in the next official release.
This should be better in 1.0.137?
@kommander All good on my side, thanks!
It's working great for me too, even on my non-truecolor terms. Thanks so much!