claude-code - 💡(How to fix) Fix cmd+click on wrapped URLs only opens the first wrapped line [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60444Fetched 2026-05-20 03:58:26
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

When the CLI prints a long URL that wraps across multiple terminal lines, ⌘ +click on the URL only opens the first wrapped line as the link target, dropping the remainder. Users have to manually select+copy the full URL instead of click-to-open.

Root Cause

When the CLI prints a long URL that wraps across multiple terminal lines, ⌘ +click on the URL only opens the first wrapped line as the link target, dropping the remainder. Users have to manually select+copy the full URL instead of click-to-open.

Fix Action

Fix / Workaround

External systems (Figma, Confluence, Notion, etc.) often produce deep links with non-ASCII path segments that get percent-encoded into long URLs. Workflows that paste those URLs back into chat (e.g. design QA, doc review) hit this consistently. Shortening the URL by dropping the path segment isn't a viable workaround — Figma node anchoring requires the full path.

Workarounds users currently rely on

Code Example

https://www.figma.com/design/2OLkZ7WFyuazD9LEoJmXUn/MO-%EC%95%8C%EB%A6%BC%EC%9E%A5?node-id=18399-51235&m=dev
RAW_BUFFERClick to expand / collapse

Summary

When the CLI prints a long URL that wraps across multiple terminal lines, ⌘ +click on the URL only opens the first wrapped line as the link target, dropping the remainder. Users have to manually select+copy the full URL instead of click-to-open.

Environment

  • Claude Code CLI (Opus 4.7, 1M context)
  • macOS Darwin 25.3.0 / Terminal.app and iTerm2 (both reproduce)
  • Terminal width: 100~140 cols

Repro

  1. Have the assistant emit a long URL in a reply, e.g. a Figma deep link with an encoded Korean path segment:
    https://www.figma.com/design/2OLkZ7WFyuazD9LEoJmXUn/MO-%EC%95%8C%EB%A6%BC%EC%9E%A5?node-id=18399-51235&m=dev
  2. The URL wraps to two lines in the terminal.
  3. ⌘ +click anywhere on the URL.

Actual: Browser opens only the first wrapped line (e.g. https://www.figma.com/design/2OLkZ7WFyuazD9LEoJmXUn/MO-%EC%95%8C%EB%A6%BC%EC%9E%A5?), which is an invalid Figma URL — the node-id parameter is dropped.

Expected: The CLI should recognize the entire wrapped URL as one hyperlink and open the full URL.

Why it matters

External systems (Figma, Confluence, Notion, etc.) often produce deep links with non-ASCII path segments that get percent-encoded into long URLs. Workflows that paste those URLs back into chat (e.g. design QA, doc review) hit this consistently. Shortening the URL by dropping the path segment isn't a viable workaround — Figma node anchoring requires the full path.

Workarounds users currently rely on

  • Select+copy the wrapped URL manually then paste into the browser
  • Have the assistant emit open "<url>" so the OS opens it instead of the user clicking
  • Use a wider terminal so the URL doesn't wrap

Suggested fix direction

Detect URL spans across wrapped lines (or stitch wrapped segments back together before exposing the OSC 8 hyperlink / ⌘ +click hit-test) so the full URL is opened as a single link.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix cmd+click on wrapped URLs only opens the first wrapped line [1 comments, 2 participants]