Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(conversations): show attachment error and enable attachment UI\n\nAdds an error banner for attachment failures and wires up the composer with attachment props, including file handling, removal, and send support. This allows users to attach files to messages and see clear feedback when an attachment operation fails.\n\nAuto-committed-on: dragonfly\n

Steven Enamakeld2df8b9e12f7
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index bfbfe98e16..d992c21d2d 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -2622,6 +2622,13 @@ const Conversations = ({
{t('openrouterFree.error')}
</div>
)}
+ {attachError && (
+ <div className="rounded-lg border border-coral-200 bg-coral-50 px-3 py-2">
+ <p className="text-xs text-coral-500" data-chat-send-error-code={attachError.code}>
+ {attachError.message}
+ </p>
+ </div>
+ )}
{selectedThreadId && (queuedFollowupsByThread[selectedThreadId]?.length ?? 0) > 0 ? (
<QueuedFollowups
items={queuedFollowupsByThread[selectedThreadId] ?? []}
@@ -2646,6 +2653,13 @@ const Conversations = ({
inputValue={inputValue}
onInputValueChange={setInputValue}
onEscape={handleComposerEscape}
+ attachments={attachments}
+ onAttachFiles={handleAttachFiles}
+ onRemoveAttachment={id => setAttachments(previous => previous.filter(a => a.id !== id))}
+ maxAttachments={ATTACHMENT_MAX_IMAGES + ATTACHMENT_MAX_FILES}
+ attachmentsEnabled={CHAT_ATTACHMENTS_ENABLED}
+ attachmentInteractionBlocked={composerInteractionBlocked || isSending}
+ onAttachmentOnlySend={() => void handleComposerSend()}
onModelChange={(value, contextWindow) => {
setComposerModelOverride(value);
setComposerModelContextWindow(contextWindow ?? null);