Skip to content

v2.6.0 — real image attachments inline

Choose a tag to compare

@RohitSh26 RohitSh26 released this 13 May 02:18
· 7 commits to main since this release

Screenshots and photos attached to a prompt now render inline in the prompt hero, not as a literal [Image #N] placeholder.

How

  • Hook reads the transcript backwards from the UPS event, picks the latest user-message with image content blocks, writes the base64 bytes to .claude/cadence/images/<sid>-<tid>-<idx>.<ext>, and attaches one {type:'image', src} block per file to the prompt node.
  • Viewer renders each as a <figure> with a bordered, shadowed <img> directly under the prompt H1.
  • Caps: 5 MB per image, max 5 per turn, 80-entry transcript lookback. Oversized images are silently skipped.

Tests: 75 (was 68). New test/images.test.js covers latest-wins selection, max-count, oversized skip, media-type default, lookback clamp.

/reload-plugins to update. New prompts with screenshots will render the image inline; older nodes retain the placeholder chip.