Description
Tool results (Read, Bash, Markdown, Generic views) currently render only text content. Any base64 image blocks returned by a tool are dropped silently. User-uploaded image attachments in assistant messages are also displayed as filename chips with no thumbnail or preview.
This means:
- Screenshots read via the
Read tool are invisible in the chat.
- Commands that emit images (charts, screenshots) produce no visible output.
- User-uploaded images can't be previewed without opening devtools.
Current behavior
web/src/components/ToolCard/views/_results.tsx only extracts text blocks from tool result content — image blocks are skipped.
web/src/components/AssistantChat/messages/MessageAttachments.tsx renders image attachments as plain filename chips.
- No shared image viewer component exists.
Proposed enhancement
- Add a reusable
ImageLightbox component (Portal overlay, ESC/backdrop close, open-in-new-tab).
- Extract and render base64 image blocks when parsing tool result content in
_results.tsx.
- Wire click-to-preview into
MessageAttachments for user-uploaded images.
I'll follow up with a PR. The change is additive — existing text-only tool results are unchanged.
Description
Tool results (Read, Bash, Markdown, Generic views) currently render only text content. Any base64 image blocks returned by a tool are dropped silently. User-uploaded image attachments in assistant messages are also displayed as filename chips with no thumbnail or preview.
This means:
Readtool are invisible in the chat.Current behavior
web/src/components/ToolCard/views/_results.tsxonly extractstextblocks from tool result content —imageblocks are skipped.web/src/components/AssistantChat/messages/MessageAttachments.tsxrenders image attachments as plain filename chips.Proposed enhancement
ImageLightboxcomponent (Portal overlay, ESC/backdrop close, open-in-new-tab)._results.tsx.MessageAttachmentsfor user-uploaded images.I'll follow up with a PR. The change is additive — existing text-only tool results are unchanged.