URLs not clickable in Ghostty terminal (TUI breaks URL detection)

Status Closed — not planned
Maintainer reply None cached
Activity 6 comments · opened Jun 20, 2026 · closed Sep 1, 2026

Summary

URLs output by Claude Code inside the TUI are not clickable in Ghostty, even though cmd+click works fine for URLs in any other context in Ghostty.

Environment

  • Terminal: Ghostty
  • OS: macOS 25.5.0 (Darwin)
  • Claude Code: CLI

Expected behavior

URLs printed by Claude Code (both plain https://... and markdown [text](url)) should be cmd+clickable in Ghostty, consistent with how URLs work everywhere else in the terminal.

Actual behavior

URLs are not detected as clickable by Ghostty inside the Claude Code TUI. Cmd+click does nothing.

Likely cause

Claude Code's TUI renderer likely inserts ANSI escape codes or renders text character-by-character in a way that fragments URL byte sequences, preventing Ghostty's URL pattern detector from recognizing them.

Workaround

None — users must manually select and copy URLs.

🤖 Generated with Claude Code

View original on GitHub ↗

5 Comments

rafix · 3 months ago

@vu-dao-93 you must use: Shift + Cmd + Click or Ctrl + Click

dawidstezycki · 3 months ago
@vu-dao-93 you must use: Shift + Cmd + Click or Ctrl + Click

doesn't work when broken into multiple lines

myster-t · 3 months ago
@vu-dao-93 you must use: Shift + Cmd + Click or Ctrl + Click

can you help me understand why this is the case? is there a setting to change this back to CMD-click even inside TUI?

trodrigues · 3 months ago

I can confirm this problem and it's not just a ghostty problem. The default macOS Terminal app has the same issue.

In Ghostty I can Shift + Cmd + Click to make it work but in the macOS Terminal it's weird. It doesn't usually work but if I hold Shift + Cmd and keep clicking it eventually it works.

On iTerm2 it seems to work fine with the regular Cmd + Click.

Also tried it out on a coworker's laptop to make sure it wasn't related to my setup and we could reproduce the same behavior.

I'm currently on the stable channel for Claude Code.

trodrigues · 3 months ago

Quick update from my end: today I disabled fullscreen mode because I realized it didn't let me scroll back and select text with tmux and the issue seems to be gone now so I'm guessing this is related to fullscreen mode.

Showing cached comments. Read the full discussion on GitHub ↗