[BUG] Long URLs are broken into multiple lines and become unclickable in terminal output

Resolved 💬 0 comments Opened May 28, 2026 by hustzyd Closed May 28, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Description:

When Claude Code outputs a long URL in the terminal (e.g., a code
review link), the URL gets wrapped across multiple lines due to
terminal width constraints. This causes the link to become
unclickable — hovering only highlights the first line fragment, not
the full URL.

What Should Happen?

Only the first line is clickable, which leads to a 404.

Error Messages/Logs

Steps to Reproduce

  1. Ask Claude Code to create a merge request or output any long URL
  2. Observe that the URL wraps to the next line in the terminal

output

  1. Try to cmd+click or hover over the link — only the first line is

recognized as a hyperlink

The URL https://github.com/anthropics/claude-code/pull/12345#issuec
omment-987654321 renders as:

https://github.com/anthropics/claude-code/pull/12345#issuecomment-
987654321

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.153

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗