diff --git a/ui/desktop/src/components/ToolCallWithResponse.tsx b/ui/desktop/src/components/ToolCallWithResponse.tsx index 6fed12cb..ab9146e1 100644 --- a/ui/desktop/src/components/ToolCallWithResponse.tsx +++ b/ui/desktop/src/components/ToolCallWithResponse.tsx @@ -130,12 +130,23 @@ function ToolResultView({ result }: ToolResultViewProps) { )} {(isExpanded || !shouldMinimize) && ( <> - {item.text && ( + {item.type === 'text' && item.text && ( )} + {item.type === 'image' && ( + Tool result { + console.error('Failed to load image: Invalid MIME-type encoded image data'); + e.currentTarget.style.display = 'none'; + }} + /> + )} )}