Skip to content

Long URLs in markdown tables are split across lines and become unclickable #18394

@nickveenhof

Description

@nickveenhof

Problem

When a URL in a markdown table cell is longer than the column width, it gets split across multiple lines to fit. The split breaks the clickable link. Short URLs that fit in one line work fine.

Steps to reproduce

Have the assistant return a markdown table with long URLs:

Paste this into a new opencode session:
Return this exact markdown table, nothing else:
| Link | Description | Status |
|------|-------------|--------|
| [MCP servers #3653](https://github.com/modelcontextprotocol/servers/pull/3653) | Fix missing trailing newline in JSONL output that breaks memory server when file is appended to by concurrent processes | Open, waiting for maintainer review |
| [Opencode #18394](https://github.com/anomalyco/opencode/issues/18394) | Long URLs in markdown table cells get split across lines and become unclickable in the terminal | Open, filed today after tracing through OpenTUI rendering chain |
| [MCP servers #3286](https://github.com/modelcontextprotocol/servers/pull/3286) | Add cross-process file locking to memory server using proper-lockfile to prevent race condition corruption | Open, addresses the root cause behind issue 2579 |

The short URL is clickable. The long URL is split across lines and not clickable.

Image

Expected

Long URLs remain clickable even when the table column is too narrow to display them on one line. Either via OSC 8 wrapping the full URL across the line break, or by rendering URLs outside the table (footnote style).

Environment

  • opencode v1.2.27
  • @opentui/core 0.1.87
  • iTerm2 3.6.8 (supports OSC 8)

Relevant upstream work

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions