Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
Merge remote-tracking branch 'origin/dev' into feat/932-desktop-documents-continuation
Alfredo Lopez271f5cc21e68
diff --cc desktop-app/ui/src/lib/chatMessageAttachments.tsindex 39c0da8bb,4776a9b39..f6ba724a9--- a/desktop-app/ui/src/lib/chatMessageAttachments.ts+++ b/desktop-app/ui/src/lib/chatMessageAttachments.ts@@@ -163,19 -191,17 +196,27 @@@ export function buildChatMessageAttachmlabel: attachment.name,tooltip: formatUploadedFileTooltip(attachment),addedOrder: attachmentOrder(attachment, fallbackIndex),+ // BUG-176: keep the image bytes on the display attachment so the+ // sent-message chip can reopen the shared image preview. Persisted with+ // the user message (same inline-base64 contract as response_file).+ filename: attachment.name,+ mimeType: attachment.mimeType,+ encoding: 'base64',+ dataBase64: attachment.dataBase64,+ sizeBytes: attachment.sizeBytes,}})- return [...referenceItems, ...imageItems].sort(+ const fileItems = fileAttachments.map((attachment, index): ChatMessageAttachment => {+ const fallbackIndex = referenceItems.length + imageItems.length + index+ return {+ id: attachment.id,+ type: 'uploaded_file',+ label: attachment.filename,+ tooltip: formatUploadedFileTooltip(attachment),+ addedOrder: attachmentOrder(attachment, fallbackIndex),+ }+ })+ return [...referenceItems, ...imageItems, ...fileItems].sort((a, b) => attachmentOrder(a, 0) - attachmentOrder(b, 0))}