The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(assistant-ui): handle missing file metadata gracefully
Steven Enamakele69215655a59
diff --git a/app/src/components/assistant-ui/file.tsx b/app/src/components/assistant-ui/file.tsxindex ca042437dd..7352a076b9 100644--- a/app/src/components/assistant-ui/file.tsx+++ b/app/src/components/assistant-ui/file.tsx@@ -33,29 +33,6 @@ const fileVariants = cva(});-function getMimeTypeIcon(mimeType: string): FC<{ className?: string }> {- const type = mimeType.toLowerCase();- if (type.startsWith('image/')) {- return ImageIcon;- }- if (type === 'application/pdf') {- return FileTextIcon;- }- if (type === 'application/json') {- return BracesIcon;- }- if (type.startsWith('text/')) {- return FileTextIcon;- }- if (type.startsWith('audio/')) {- return MusicIcon;- }- if (type.startsWith('video/')) {- return VideoIcon;- }- return FileIcon;-}-function renderMimeTypeIcon(mimeType: string | undefined) {const type = mimeType?.toLowerCase();