github / github/copilot-cli

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

Đang mở
#2,033 1 bình luận 4 reaction 0 người được giao Xem trên GitHub
area:terminal-rendering
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

When Copilot CLI renders markdown [text](url) 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](url) format in the output
3. Ctrl+click the URL in the terminal
4. Browser opens with ) appended — e.g. https://github.com/github/copilot-cli/issues/1813)

Image

### Expected behavior

Markdown [text](url) 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

- OS: Windows 11
- Terminal: WezTerm
- Shell: PowerShell (pwsh)
- Related: #1837 — same root cause (CLI not emitting OSC 8), but scoped to MCP progress messages
- See also: #1818, #1813 — part of a broader rendering pipeline gap pattern in recent versions

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.