← Back to all updates

Image Attachments Added to AI Chat

Commit: 23383cb

Users can now attach images to AI chat messages via multiple methods.

Changes

  • Implemented drag-and-drop support for image attachments in AI chat.
  • Added file picker integration using NSOpenPanel and PhotosPicker for image selection.
  • Enabled Cmd+V paste functionality for images in chat messages.
  • Compressed images to a maximum dimension of 1024px at JPEG 0.7 quality before sending.
  • Supported multimodal content formats for both OpenAI and Anthropic vision APIs.
  • Displayed thumbnails in the input area with remove buttons for attached images.
  • Ensured sent images are displayed inline in message history.