Skip to content

Markdown links not converted to OSC 8 hyperlinks — trailing ) appended to URL on click #2033

@indeherb

Description

@indeherb

Describe the bug

When Copilot CLI renders markdown text links in responses, they are not converted to proper OSC 8 terminal hyperlinks. The raw URL is exposed as plain text,
causing terminal emulators (e.g. WezTerm) to apply their own URL auto-detection — which captures the trailing ) from the markdown syntax as part of the URL. Every clicked link opens the
browser with ) appended, requiring manual correction.

Affected version

v1.0.5

Steps to reproduce the behavior

  1. Ask Copilot CLI anything that produces a markdown link in the response
  2. Observe text format in the output
  3. Ctrl+click the URL in the terminal
  4. Browser opens with ) appended — e.g. Diff highlights entire line now instead of just the changed text #1813)
Image

Expected behavior

Markdown text links should be emitted as OSC 8 terminal hyperlinks — the terminal displays a clean clickable label, the raw ) is never exposed to the terminal's
URL detector.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formatting

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions