feat(markdown): render inline images in messages and markdown files

Route markdown image nodes through a shared MarkdownImage component that
loads local paths through the raw file API, and allow data:image/* sources
through the sanitizer and URL transform so inline images survive rendering.

Render image attachments as thumbnails in the message thread, and accept
image/webp uploads.
This commit is contained in:
Chris Scott committed 2026-10-13 00:29:00 +00:00
1 parent 93faf387d2
commit be93975d90
13 files changed
+263 -18

No files matched your search

@@ -25,7 +25,7 @@ export const MessagePart = memo(function MessagePart({ part, messageID, director
switch (part.type) {
case 'text':
return <TextPart text={part.text} onFileClick={onFileClick} />
return <TextPart text={part.text} onFileClick={onFileClick} directory={directory} />
case 'reasoning':
if (simpleChatMode || !showReasoning) return null
if (!part.text.trim()) return null