[Bug] OSC 8 hyperlinks for pasted images not restored on session resume
Status Open
Reported on v2.1.246
Maintainer reply None cached
Activity 0 comments · opened Aug 26, 2026
Bug Description
▎ Pasted-image [Image #N] links lose their OSC 8 hyperlink after claude --resume.
▎
▎ Repro: paste an image into a session, exit, claude --resume that session, then Cmd+Click the [Image #N] link in the replayed scrollback — nothing happens. Paste a second image in the resumed session and its link works normally, so it's specific to replayed history rather than to the terminal or to a missing file.
▎
▎ The backing file is still present and valid (~/.claude/image-cache/<session>/1.png), so it appears the link is simply not re-emitted when the transcript is redrawn.
▎
▎ Env: Claude Code 2.1.246, macOS, Ghostty 1.3.1 inside tmux 3.6a (allow-passthrough on).
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.1.246
- Feedback ID: faa90dc8-b69a-43a0-876e-6fd20cfc8e7b
Errors
[]