Skip to content

No highlighting in diffs #3687

Closed
Closed

Description

@vishawdeepsingh-dev

Description

In the latest opencode the diffs style is not what it used to be now there are no red and green highlights

OpenCode version

v1.0.7

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

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

    @thdxr
    Member

    working it it this week

  3. kud commented on Nov 4, 2025

    @kud
    Image

    Seems broken to me or is it because it's zsh?

  4. jdanbrown commented on Nov 4, 2025

    @jdanbrown
    Contributor

    In case helpful, here's another example of the background red/green highlights missing, on opencode 1.0.23:

    Image
  5. webboty commented on Nov 11, 2025

    @webboty

    Yea, would be really cool to get the diff highlighting and line numbers back as in the old version.
    Makes a difference like day and night to get a grasp of what is changing in the files.

  6. rekram1-node commented on Nov 12, 2025

    @rekram1-node
    Contributor

    we are working on them, they should be in a better state soon :)

  7. nemanjajojic commented on Nov 17, 2025

    @nemanjajojic

    The same here. I'm using zsh and Ghosty.
    Thank you putting the effort 🙏

  8. iljod commented on Nov 19, 2025

    @iljod
    Contributor

    The same here. I'm using zsh and Ghosty. Thank you putting the effort 🙏

    same!

  9. runitmisra commented on Dec 5, 2025

    @runitmisra

    This seems to be working now with the latest update v1.0.132 for me at least.

    Image
  10. MuntasirSZN commented on Dec 5, 2025

    @MuntasirSZN

    Me too.

  11. MuntasirSZN commented on Dec 5, 2025

    @MuntasirSZN

    Also I think the diff is a bit simpler then what I see from programs like delta. Like a darker color diff for the line of the exact changes in right side.

  12. iamhenry commented on Dec 5, 2025

    @iamhenry

    it's not working if you're using the "system" theme like i do. otherwise it does work

  13. MuntasirSZN commented on Dec 5, 2025

    @MuntasirSZN

    it's not working if you're using the "system" theme like i do. otherwise it does work

    I use catppuccin

  14. contre95 commented on Dec 5, 2025

    @contre95

    @iamhenry what do you mean by "system" theme? how can I disable it?

  15. kud commented on Dec 5, 2025

    @kud

    @contre95 One theme is called "system" which tries to rely on your current system. What Henry suggests is to choose another theme.

  16. iamhenry commented on Jan 4, 2026

    @iamhenry

    @rekram1-node is there an update on this? I've been having to manually switch my themes across machines because diff highlighting from the "system" theme doesnt work.

  17. rekram1-node commented on Jan 4, 2026

    @rekram1-node
    Contributor

    Hm ill look

  18. rekram1-node commented on Jan 4, 2026

    @rekram1-node
    Contributor

    I think I got it fixed: 41cf45a

    Lmk if it works for u, u can test using bunx opencode-ai@dev to run dev snapshot (still deploying rn)

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