Skip to content

Diffs invisible on light mode, regardless of theme #4928

Closed

Description

@gabrielmontagne

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.

Image

Here using the GitHub theme,

Image

OpenCode version

1.0.121

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Debian 12

Terminal

xcfe4-terminal

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 30, 2025
  2. github-actions commented on Nov 30, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. akronb commented on Dec 1, 2025

    @akronb
    Contributor

    Got the same problem. Using opencode v1.0.125, Ghostty 1.2.3, macOS Sequoia 15.7.1

    Image
  4. awwright commented on Dec 3, 2025

    @awwright

    I think this is the same problem that I'm having, except I can't see anything at all, my install is mostly unusable.

    Image

    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:

    Image
  5. rekram1-node commented on Dec 3, 2025

    @rekram1-node
    Contributor

    What terminal and theme are you using?

  6. nesl247 commented on Dec 3, 2025

    @nesl247

    In my case I'm using catppuccin latte for both iterm2 and opencode.

  7. awwright commented on Dec 3, 2025

    @awwright

    @rekram1-node Just the "System" theme, but no theme is readable. This is the "solarized" theme:

    Image
  8. kommander commented on Dec 5, 2025

    @kommander
    Contributor

    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.

  9. akronb commented on Dec 5, 2025

    @akronb
    Contributor

    @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.

    Image Image Image Image

    Also, I can't see the title in the "Rename session" dialog.

    Image
  10. kommander commented on Dec 5, 2025

    @kommander
    Contributor

    This is so weird, in ghostty it works fine for me for anything that does not have a parser like .vim files.

    Screenshot 2025-12-05 at 20.49.00.png

    Can you try with bunx opencode-ai@snapshot-kmdr-debug?

  11. gabrielmontagne commented on Dec 6, 2025

    @gabrielmontagne
    Author

    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,

    Image

    this is the GitHub theme, running opencode 1.0.134.

  12. kommander commented on Dec 6, 2025

    @kommander
    Contributor

    Did you try running bunx opencode-ai@snapshot-kmdr-debug?

  13. koichiio commented on Dec 6, 2025

    @koichiio
    Contributor

    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

    Image

    I changed the dark/light by "toggle appearance"

    Image

    I asked them to cat the file in plan mode.

    Image

    Also, I see a similar issue with "no matching items"
    Image

  14. akronb commented on Dec 6, 2025

    @akronb
    Contributor

    @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

    Image Image
  15. kommander commented on Dec 8, 2025

    @kommander
    Contributor

    Could you please try again with bunx opencode-ai@snapshot-kmdr-debug? Trying a different fix now.

  16. koichiio commented on Dec 8, 2025

    @koichiio
    Contributor

    @kommander
    It's working!!!!!
    Although, "no matching files" issue persists

    Image Image
  17. akronb commented on Dec 8, 2025

    @akronb
    Contributor

    @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.

    Image Image
  18. kommander commented on Dec 8, 2025

    @kommander
    Contributor

    Okay, I'll check the other issues as well and bring that in the next official release.

  19. kommander commented on Dec 9, 2025

    @kommander
    Contributor

    This should be better in 1.0.137?

  20. akronb commented on Dec 9, 2025

    @akronb
    Contributor

    @kommander All good on my side, thanks!

  21. gabrielmontagne commented on Dec 9, 2025

    @gabrielmontagne
    Author

    It's working great for me too, even on my non-truecolor terms.
    Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis 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