Skip to content

Conversation

@shuv1337
Copy link
Contributor

@shuv1337 shuv1337 commented Jan 2, 2026

Summary

  • Add image preview support for base64-encoded images in the session viewer
  • Detect images by checking for base64 encoding and image/* mimeType
  • Render images inline with an <img> element instead of showing raw base64 data

Changes

  • Added isImage memo to detect base64 image content
  • Added imageDataUrl memo to construct data URL for rendering
  • Added new <Match> case to render images when detected

Before:
image

After:
image

Add ability to preview base64-encoded images directly in the session
viewer instead of showing raw base64 data. Detects images by checking
for base64 encoding and image/* mimeType, then renders them with an
img element.
@adamdotdevin adamdotdevin merged commit 5f93bee into anomalyco:dev Jan 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants