Skip to content

fix(app): make links in user messages clickable - #57211

Merged
neriousy merged 1 commit into
betafrom
app-user-message-links
Oct 19, 2026
Merged

neriousy merged 1 commit into
betafrom
app-user-message-links

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

What

URLs in user message bubbles are now real links, so https://github.com/Hona/mesh in a prompt can be clicked instead of copied by hand.

  • http(s):// URLs in the plain-text segments of a user message render as <a target="_blank" rel="noopener noreferrer">. The desktop window-open handler already sends these to the system browser; on web they open in a new tab, the same as assistant markdown links.
  • Trailing punctuation (, . ) ] and similar) stays outside the link, matching how tool output already extracts URLs.
  • File and agent mentions keep their existing highlighting. URL detection only runs on the text between mentions.
  • Links keep the bubble's text color with a soft underline that becomes solid on hover, so they're readable in dark, light and pending states.

Tests

  • New links scenario in the Conversation timeline story.
  • Component test checking link count, href, target, punctuation trimming, the mention, and that the full text content is unchanged.
  • session-message-projection.spec.ts passes locally (7/7), and session-ui typecheck passes.

Before/after screenshots in dark and light themes were shared in the Slack thread.

Requested by: @neriousy (Filip via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant