link decoration broken on an URL with - #2290

Open
opened 2026-02-16 17:35:00 -05:00 by yindo · 5 comments
Owner

Originally created by @lagz0ne on GitHub (Oct 27, 2025).

Originally assigned to: @buildwithricky on GitHub.

Description

The TUI renders incorrectly an URL with "-".

Renders: https://hello-world.com
Instead of https://hello-world.com

OpenCode version

0.15.8

Steps to reproduce

The TUI renders incorrectly an URL with "-".

Renders: -world.com
Instead of

Screenshot and/or share link

No response

Operating System

Ubuntu on WSL

Terminal

Windows Terminal

Originally created by @lagz0ne on GitHub (Oct 27, 2025). Originally assigned to: @buildwithricky on GitHub. ### Description The TUI renders incorrectly an URL with "-". Renders: [https://hello](https://hello)-world.com Instead of [https://hello-world.com](https://hello-world.com) ### OpenCode version 0.15.8 ### Steps to reproduce The TUI renders incorrectly an URL with "-". Renders: [](https://hello)-world.com Instead of [](https://hello-world.com) ### Screenshot and/or share link _No response_ ### Operating System Ubuntu on WSL ### Terminal Windows Terminal
yindo added the bug label 2026-02-16 17:35:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 27, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2634: Both issues involve TUI problems with URLs containing hyphens - the hyperlink colorization/decoration breaks when hyphens are present in URLs

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 27, 2025): This issue might be a duplicate of existing issues. Please check: - #2634: Both issues involve TUI problems with URLs containing hyphens - the hyperlink colorization/decoration breaks when hyphens are present in URLs Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 27, 2025):

Renders: -world.com
Instead of

instead of?

@rekram1-node commented on GitHub (Oct 27, 2025): > Renders: -world.com Instead of instead of?
Author
Owner

@lagz0ne commented on GitHub (Oct 27, 2025):

My bad, I updated the report. The render interupted at the hyphen

@lagz0ne commented on GitHub (Oct 27, 2025): My bad, I updated the report. The render interupted at the hyphen
Author
Owner

@buildwithricky commented on GitHub (Oct 27, 2025):

This is an interesting issue . i will love to take it on can it be assigned to me

@buildwithricky commented on GitHub (Oct 27, 2025): This is an interesting issue . i will love to take it on can it be assigned to me
Author
Owner

@rekram1-node commented on GitHub (Oct 27, 2025):

@buildwithricky sure thing, I believe this happens in the markdown renderer so there would need to ve a special case for urls like this

We are also currently rewriting the tui and the rewrite will ship this week so the go code will all ge gone

@rekram1-node commented on GitHub (Oct 27, 2025): @buildwithricky sure thing, I believe this happens in the markdown renderer so there would need to ve a special case for urls like this We are also currently rewriting the tui and the rewrite will ship this week so the go code will all ge gone
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2290