Skip to content

Weird unexplained unattractive highlighting of the word 'working'? #4974

Closed

Description

@ariane-emory

Description

I'm kind of torn on whether this is a bug report or a question... I definitely have a question, and I suppose that whether what I'm seeing is a bug or not will depend on what the answer to the question is.

For some inexplicable reason, opencode seems to highlight the word 'working'.

  1. Is this intentional, is it supposed to do this?
  2. If it is intentional, what is the rationale for doing this strange thing? Look at the screenshot - don't you think it looks kind of rough? It doesn't seem useful and I don't think it looks pretty, especially when it happens half ways through a word such as it does in working-directory.ts in the attached screenshot.

Hopefully someone has an idea why this strange behaviour is occurring. If no one has any idea why this is happening, I guess I'll consider it a bug and try to come up with a PR to fix it.

Looking forwards to hearing the answer!

OpenCode version

1.0.126

Steps to reproduce

  1. Do something to cause the word working to appear in your session, for instance by asking about "How is the working directory determined?" or whatnot.
  2. Observe that the word working is inexplicably highlighted.

Screenshot and/or share link

Image

Operating System

MacOS Sequia latest

Terminal

iTerm2

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 2, 2025
  2. changed the title [-]Weird unexplained highlighting of the word 'working'?[/-] [+]Weird unexplained unattractive highlighting of the word 'working'?[/+] on Dec 2, 2025
  3. rekram1-node commented on Dec 2, 2025

    @rekram1-node
    Contributor
    Image

    I can't replicate?

  4. kommander commented on Dec 2, 2025

    @kommander
    Contributor

    That looks like you have a search in your terminal active. Nothing in opencode nor opentui renders a word highlighted across elements like this.

  5. wolfie82 commented on Dec 2, 2025

    @wolfie82
    Contributor

    This looks like a smart selection

    Image
  6. ariane-emory commented on Dec 2, 2025

    @ariane-emory
    ContributorAuthor

    @kommander, @wolfie82 This is neither an active search nor is it an iTerm2 smart selection. I'll post my theme once I've fully woken up, maybe it's involved somehow.

  7. kommander commented on Dec 2, 2025

    @kommander
    Contributor
    Screen.Recording.2025-12-02.at.21.30.48.mov

    This looks suspiciously like iTerm2 find/selection though. I know every line of opentui and there is no such thing that does that.

  8. ariane-emory commented on Dec 3, 2025

    @ariane-emory
    ContributorAuthor

    I'll reopen this if/when it reoccurs.

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