From b5e1bc9a68cfb6a200d1e52a17facc9942444289 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 17 Apr 2026 13:08:03 +0200 Subject: [PATCH] Rename variable for clarity in image attachment check --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 4e1e33c..a45104d 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2402,8 +2402,8 @@ async function sendMessage() { const existingMessages = (chatSessions.find(s => s.session_id === targetSessionId)?.messages) || [] const outgoingAttachments = composerAttachments.map(({ id, ...attachment }) => ({ ...attachment })) - const conversationNeedsVision = existingMessages.some(messageHasImageAttachments) || outgoingAttachments.some(attachmentIsImage) - if (conversationNeedsVision && !canAttachImages) { + const historyNeedsVision = existingMessages.some(messageHasImageAttachments) + if (historyNeedsVision && !canAttachImages) { window.alert(imageAttachmentUnavailableReason) return }