Skip to content

Cmd+click on multi-line wrapped URL only opens partial URL (first line portion) #9385

@weppyk

Description

@weppyk

Description

When a long URL wraps across two or more lines in the terminal, Cmd+clicking on it only opens the first-line portion of the URL in the browser. The second (and any subsequent) line segments are ignored, resulting in a broken/incomplete URL being opened.

Steps to reproduce

  1. Make the terminal window narrow enough that a long URL wraps to a second line
  2. Output or paste a long URL (e.g. one with many query parameters)
  3. Cmd+click on the URL

Expected behavior

The full URL (spanning both lines) opens in the browser.

Actual behavior

Only the portion of the URL on the first visual line is opened — the URL is split at the line wrap boundary.

Environment

  • OS: macOS
  • Shell: zsh

Metadata

Metadata

Assignees

Labels

area:agentAgent workflows, conversations, prompts, cloud mode, and AI-specific UI.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.os:macmacOS-specific behavior, regressions, or requests.ready-to-specThe issue is ready for a product and technical spec.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions