Support OSC 8 hyperlinks in status line output

Resolved 💬 3 comments Opened Apr 6, 2026 by JamesGoetz-Miniter Closed Apr 10, 2026

Summary

The status line (settings.jsonstatusLine 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

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗