Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: tel: links in chat messages are blanked and do nothing when clicked #49574

OpenbWgibb(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Summary

A tel: link in a chat message does nothing when clicked. The anchor is rendered with an empty destination, so the phone app never opens. Related link fixes that took the same path: #23486 (cursor:// and vscode://), #31175 (mailto: in the desktop shell), #31386 (obsidian://).

Steps to reproduce

  1. In the desktop app, have an agent reply with a Markdown link such as [Call 555-0100](tel:+15555550100).
  2. Click the link.

Expected behavior

The OS phone handler opens with the number (on macOS, FaceTime, which can place the call through a paired iPhone), with the same confirmation the app shows for other external app links.

Actual behavior

Nothing happens. The link text is styled as a link, but the href is blank.

On main, markdownUrlTransform in apps/web/src/components/ChatMarkdown.tsx falls back to safeUrl, whose SAFE_PROTOCOL is /^(?:https?|ircs?|mailto|xmpp)$/i (react-markdown's default), so tel: returns "". Following #23486, the shared sanitizer's href protocol list in packages/shared/src/markdownPipeline.ts and parseSafeExternalUrl in apps/desktop/src/electron/ElectronShell.ts would also need to let tel: through for a click to reach shell.openExternal.

Impact

Minor bug or occasional failure

Version or commit

0.1.12-nightly.20261123.5151 (desktop). SAFE_PROTOCOL is unchanged on main as of 2026-12-05.

Environment

macOS 27.0.1, T3 Code (Nightly) desktop app, connected to a remote Linux environment.

Workaround

Link to an https page that redirects to the tel: URL, or copy the number by hand.

  1. tanstack-source added labelsbug

Sign in to join this conversation.