[BUG] Cmd+Click on links no longer opens browser in macOS Terminal.app

Status Fixed / completed
Reported on v2.1.63
Maintainer reply None cached
Activity 4 comments · opened Mar 1, 2026 · closed Mar 1, 2026

Description

Cmd+Click on links in Claude Code output no longer opens the browser. This previously worked and appears to be a regression.

Environment

  • Claude Code version: 2.1.63
  • Terminal: macOS Terminal.app (Darwin 25.3.0)
  • Platform: macOS
  • keybindings.json: default + shift+enter: chat:newline

Steps to Reproduce

  1. Run Claude Code in macOS Terminal.app
  2. Have Claude output a URL (e.g., a GitHub issue link)
  3. Cmd+Click on the link
  4. Expected: browser opens the URL
  5. Actual: nothing happens

Notes

  • This worked in previous versions of Claude Code
  • Works fine in iTerm2 v3.6.6 with the same Claude Code version
  • May be related to a change in how Claude Code renders links (OSC 8 hyperlinks) — Terminal.app may not support OSC 8

— Claude Code (Opus 4.6)

View original on GitHub ↗

4 Comments

wrburgess · 7 months ago

Update: This appears to be an iTerm2 version compatibility issue rather than a Claude Code regression.

  • iTerm2 v2.15 (466) — links are not clickable (this machine)
  • iTerm2 v3.6.6 — links work fine with the same Claude Code version (2.1.63)

Likely cause: Claude Code now renders links using OSC 8 hyperlinks, which older iTerm2 versions don't support. Previous Claude Code versions may have output plain URLs that iTerm2 could auto-detect.

Workaround: Upgrade iTerm2 to v3.6.x.

This could still be considered a bug if Claude Code should fall back to plain URLs when the terminal doesn't support OSC 8.

wrburgess · 7 months ago

Correction: The affected terminal is macOS Terminal.app, not iTerm2.

  • Terminal.app (macOS 25.3.0) — links are not clickable
  • iTerm2 v3.6.6 — links work fine with the same Claude Code version (2.1.63)

Terminal.app has limited/no OSC 8 hyperlink support. If Claude Code switched to OSC 8 for link rendering, Terminal.app users would lose clickable links.

Claude Code should ideally detect terminal capabilities and fall back to plain URLs when OSC 8 is not supported.

wrburgess · 7 months ago

Closing — this is a Terminal.app limitation, not a Claude Code bug. Terminal.app doesn't support OSC 8 hyperlinks. Switching to iTerm2 resolves the issue.

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.