[Bug] OSC 8 hyperlinks not clickable in agent view output pane
Bug Description
Title: Cmd+click hyperlinks not clickable in agent view (works in main REPL) — v2.1.183
Body:
On Claude Code v2.1.183, URLs/links rendered in the agent view (spawned-agent / background-session output pane) are not cmd+clickable. The identical links render and cmd+click fine in the main interactive REPL, in the same terminal session — so this is an agent-view rendering-path difference, not a terminal limitation.
Environment
- Claude Code: 2.1.183
- Terminal: Ghostty (TERM=xterm-ghostty) — full OSC 8 hyperlink support
- OS: macOS 15.7.7
- Not running inside tmux
Repro
- Start a session and have output containing a URL appear in the main REPL → cmd+click opens it. ✅
- Run work in the agent/background view so output with a URL appears there → cmd+click does nothing. ❌
- Same terminal, same session.
Expected: Links in agent view emit OSC 8 hyperlink sequences and are cmd+clickable, matching the main REPL.
Notes: v2.1.144 fixed markdown links in claude agents attached sessions, but the live agent-view output pane still appears unaffected. Likely related to the agent view's separate display path (cf. issues #58255, #23014). Not covered by #26356 (that's IDE-terminal vs standalone; this is same-terminal, main-view-works / agent-view-doesn't).
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.183
- Feedback ID: f80ab422-4c90-4fca-88a0-02afad9784e9
Errors
[]