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

Closed
opened 2026-02-16 17:39:19 -05:00 by yindo · 6 comments
Owner

Originally created by @ariane-emory on GitHub (Dec 2, 2025).

Originally assigned to: @kommander on GitHub.

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

Originally created by @ariane-emory on GitHub (Dec 2, 2025). Originally assigned to: @kommander on GitHub. ### 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 <img width="831" height="602" alt="Image" src="https://github.com/user-attachments/assets/f5ba5002-1bdb-4d9f-b7b2-d005e5f3630c" /> ### Operating System MacOS Sequia latest ### Terminal iTerm2
yindo added the opentuibug labels 2026-02-16 17:39:19 -05:00
yindo closed this issue 2026-02-16 17:39:19 -05:00
Author
Owner

@rekram1-node commented on GitHub (Dec 2, 2025):

Image

I can't replicate?

@rekram1-node commented on GitHub (Dec 2, 2025): <img width="442" height="452" alt="Image" src="https://github.com/user-attachments/assets/875a8728-7cbf-4401-be48-e1910dfeea22" /> I can't replicate?
Author
Owner

@kommander commented on GitHub (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.

@kommander commented on GitHub (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.
Author
Owner

@wolfie82 commented on GitHub (Dec 2, 2025):

This looks like a smart selection

Image
@wolfie82 commented on GitHub (Dec 2, 2025): This looks like a smart selection <img width="1175" height="517" alt="Image" src="https://github.com/user-attachments/assets/9edc0bd2-7ac1-4262-bc6b-963a8f4cff0b" />
Author
Owner

@ariane-emory commented on GitHub (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.

@ariane-emory commented on GitHub (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.
Author
Owner

@kommander commented on GitHub (Dec 2, 2025):

https://github.com/user-attachments/assets/1bd5c97d-4ad7-4e7e-9421-c91448df7205

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

@kommander commented on GitHub (Dec 2, 2025): https://github.com/user-attachments/assets/1bd5c97d-4ad7-4e7e-9421-c91448df7205 This looks suspiciously like iTerm2 find/selection though. I know every line of opentui and there is no such thing that does that.
Author
Owner

@ariane-emory commented on GitHub (Dec 3, 2025):

I'll reopen this if/when it reoccurs.

@ariane-emory commented on GitHub (Dec 3, 2025): I'll reopen this if/when it reoccurs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3248