Skip to content

Syntax highlitghing is broken #3711

Closed
Closed

Description

@tsukinoko-kun

Description

Code shown in the TUI is not highlighted correctly.

OpenCode version

1.0.9

Steps to reproduce

Not sure where it breaks but thats the first code snippet I saw after I recently updated (I was at a version before the redesign). I assume its the + and - from the diff.

Screenshot and/or share link

Image

Operating System

macOS 26.0.1

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 1, 2025
  2. github-actions commented on Nov 1, 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. assigned and unassigned on Nov 1, 2025
  4. kommander commented on Nov 1, 2025

    @kommander
    Contributor

    Ah yes, are there tabs in the code? There currently is an issue with tabs. Will be fixed.

  5. tsukinoko-kun commented on Nov 2, 2025

    @tsukinoko-kun
    Author

    Ah yes, are there tabs in the code? There currently is an issue with tabs. Will be fixed.

    Yes. I use tabs for indentation.
    I assume rendering the tab character wider than one character messes up the token positions?

  6. kellpossible commented on Nov 4, 2025

    @kellpossible

    renders this unusable for go code

  7. thdxr commented on Nov 4, 2025

    @thdxr
    Member

    we're working on this

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