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
tui: long bare URLs wrap across lines and are not clickable #51727
Long bare URLs in assistant messages wrap across TUI lines and can't be clicked as a single link. Only the clicked-line segment opens, so the browser gets a truncated URL. Seen on vscode terminal (xterm-256color) with opencode 2.0.15.
Plugins
None found in config (~/.config/opencode/opencode.json contains only $schema).
OpenCode version
2.0.15
Steps to reproduce
Have assistant output several long bare URLs (100+ chars, e.g. RockAuto / Jegs catalog URLs).
View in TUI at normal width so a URL wraps onto 2 lines.
Ctrl/Cmd+Click the wrapped URL.
Screenshot and/or share link
None — non-git workspace, no /share run.
Operating System
Linux 7.0.0-31-generic (linux x64)
Terminal
vscode, TERM=xterm-256color, COLORTERM=truecolor
Expected Behavior
Wrapped URL remains a single clickable link (OSC 8 hyperlink spanning the wrap), or renders so the full URL opens.
Actual Behavior
Only the clicked-line segment is captured; user must copy/paste pieces together.
Additional Context
Duplicate check before filing (empty searches for "link not clickable / markdown link / URL wrap / long URL / link break"):
Same symptom on another terminal: Termux app 0.119.0-beta.3 (Android 17, Pixel 10, ~80 cols) with terminal-onclick-url-open = true. Any 100+ char bare URL in TUI output wraps to 2 lines and tapping it opens only the first visual line, so the browser gets a truncated link. No ctrl+click here, it's tap-to-open, same truncation. Filed the terminal-side half as termux/termux-app#5368; the OSC 8 half belongs here.
Verified on v2.0.28 (Termux 0.119.0-beta.3, Android 17, Pixel 10, ~80 cols, terminal-onclick-url-open = false): tapping an explicit markdown link label opens the full URL across the wrap — #53903 works. But a bare URL in chat still does nothing on tap: it renders as plain text, not a link element, so there is nothing for click resolution to hit. With terminal-onclick-url-open = true the terminal instead intercepts the tap and opens the truncated first line. Remaining gap looks like bare-URL linkification (cf. the chunk.link root cause noted for #14966).
Activity
github-actions commentedon Sep 27, 2026
Thanks for updating the issue with a description, reproduction steps, and system details!
DEAD1nsane commentedon Oct 7, 2026
Same symptom on another terminal: Termux app 0.119.0-beta.3 (Android 17, Pixel 10, ~80 cols) with
terminal-onclick-url-open = true. Any 100+ char bare URL in TUI output wraps to 2 lines and tapping it opens only the first visual line, so the browser gets a truncated link. No ctrl+click here, it's tap-to-open, same truncation. Filed the terminal-side half as termux/termux-app#5368; the OSC 8 half belongs here.fix(tui): open clicked transcript links, including wrapped rows (#53903)
DEAD1nsane commentedon Oct 13, 2026
Verified on v2.0.28 (Termux 0.119.0-beta.3, Android 17, Pixel 10, ~80 cols,
terminal-onclick-url-open = false): tapping an explicit markdown link label opens the full URL across the wrap — #53903 works. But a bare URL in chat still does nothing on tap: it renders as plain text, not a link element, so there is nothing for click resolution to hit. Withterminal-onclick-url-open = truethe terminal instead intercepts the tap and opens the truncated first line. Remaining gap looks like bare-URL linkification (cf. thechunk.linkroot cause noted for #14966).