Support OSC 8 hyperlinks in status line output
Summary
The status line (settings.json → statusLine script) supports ANSI color codes, but OSC 8 hyperlink sequences are stripped or ignored by the Ink-based TUI renderer. This means status line scripts cannot render clickable links.
Use case
My status line script detects the current Jira ticket from the workspace and renders it as an OSC 8 hyperlink so I can click it to jump to the ticket in the browser:
$linkStart = "${esc}]8;;https://jira.example.com/browse/PROJ-1234${esc}\"
$linkEnd = "${esc}]8;;${esc}\"
$ticketStr = "${linkStart}PROJ-1234${linkEnd}"
The text renders correctly and colors work, but the link is not clickable. The underlying terminal (Windows Terminal, iTerm2, etc.) supports OSC 8 — the sequences just don't make it through Claude Code's rendering layer.
Expected behavior
OSC 8 hyperlink sequences in status line output should be passed through to the terminal so that clickable links render in terminals that support them (Windows Terminal, iTerm2, Ghostty, kitty, etc.).
Current behavior
The hyperlink escape sequences are silently stripped. The text appears but is not clickable.
Environment
- Claude Code CLI (terminal)
- Windows Terminal (supports OSC 8)
- Status line configured via PowerShell script
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗