From e9276b1b31412cf163a78b60c5e8824cf7aa56fc Mon Sep 17 00:00:00 2001 From: tamakiii Date: Sun, 3 May 2026 12:39:46 +0900 Subject: [PATCH] Add OSC 8 hyperlink passthrough to tmux Enables Ghostty to render OSC 8 hyperlinks emitted by in-pane processes (Claude Code, statuslines, etc.) as Shift+Cmd+Click-able links. Without these settings, tmux 3.5a + Ghostty 1.3.1 silently drops OSC 8 sequences from in-pane processes, even though raw printf in the same pane renders fine. The fix is three lines: allow-passthrough on, advertise hyperlink capability, and explicit Hls/Hlr terminfo overrides. Verified by: detach + reattach (or kill-server), then printf '\e]8;;https://example.com\e\\link\e]8;;\e\\\n' is clickable with Shift+Cmd+Click. Claude Code's emitted hyperlinks likewise become clickable. Related to tamakiii/meta#773 Co-Authored-By: Claude --- .config/tmux/tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 8ea73cee..c5ff378d 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -13,6 +13,12 @@ set -g renumber-windows on set -g default-terminal "tmux-256color" set -ag terminal-features ",xterm-256color:RGB" +# OSC 8 hyperlink passthrough so Ghostty renders in-pane hyperlinks +# (Claude Code output, etc.) as Shift+Cmd+Click. tamakiii/meta#773. +set -g allow-passthrough on +set -ag terminal-features ",*:hyperlinks" +set -ag terminal-overrides ',*:Hls=\E]8;id=%p1%s;%p2%s\E\\:Hlr=\E]8;;\E\\' + # colors set -g pane-active-border-style "bg=default,fg=colour28" set -g pane-border-style "bg=default,fg=colour8"