Repository navigation
v2.6.0 — real image attachments inline
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
imagecontent 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.