mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-11 18:53:11 +08:00
Ghostty natively supports the OSC 9 desktop-notification escape (ESC ] 9 ; <message> BEL), the same sequence already used for iTerm2. Previously only TERM_PROGRAM === 'iTerm.app' took the escape path, so Ghostty users fell through to the osascript path. That makes Script Editor the notification owner, and clicking the notification just launches Script Editor instead of focusing the terminal. Adding 'ghostty' to the OSC 9-capable check makes Ghostty the owner, so clicking the notification focuses the Ghostty window/tab where Claude Code is running. Verified on Ghostty (TERM_PROGRAM=ghostty). Co-authored-by: 高野智史 <satoshitakano@takanosatoshinoMacBook-Pro-522.local> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8.4 KiB
8.4 KiB