You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Weird unexplained unattractive highlighting of the word 'working'? #4974
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'.
Is this intentional, is it supposed to do this?
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
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.
Observe that the word working is inexplicably highlighted.
changed the title [-]Weird unexplained highlighting of the word 'working'?[/-][+]Weird unexplained unattractive highlighting of the word 'working'?[/+]on Dec 2, 2025
@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.
Activity
[-]Weird unexplained highlighting of the word 'working'?[/-][+]Weird unexplained unattractive highlighting of the word 'working'?[/+]rekram1-node commentedon Dec 2, 2025
I can't replicate?
kommander commentedon Dec 2, 2025
That looks like you have a search in your terminal active. Nothing in opencode nor opentui renders a word highlighted across elements like this.
wolfie82 commentedon Dec 2, 2025
This looks like a smart selection
ariane-emory commentedon Dec 2, 2025
@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.
kommander commentedon Dec 2, 2025
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.
ariane-emory commentedon Dec 3, 2025
I'll reopen this if/when it reoccurs.