- 015-keyboard-shortcuts.md (completed) - 020-command-palette.md (completed) - 021-file-attachments.md (next: @mentions, drag-drop, chips) - 022-long-paste-handling.md (summarize long pastes) - 023-symbol-attachments.md (LSP integration) - 024-agent-attachments.md (agent context) - 025-image-clipboard-support.md (image handling)
32 lines
823 B
Markdown
32 lines
823 B
Markdown
---
|
|
title: Image Clipboard
|
|
description: Support pasting images from the clipboard.
|
|
---
|
|
|
|
Implement Image Clipboard Support
|
|
|
|
---
|
|
|
|
### Detect Image Paste
|
|
|
|
Detect when image data is present in the system clipboard during a paste event.
|
|
|
|
Prioritize image data over text data if both are present.
|
|
|
|
---
|
|
|
|
### Create Image Attachment
|
|
|
|
Automatically create an image attachment from the pasted image data. Convert the image to a base64 encoded format for internal handling and submission.
|
|
|
|
Display the image attachment as a chip in the input area.
|
|
|
|
---
|
|
|
|
### Acceptance Criteria
|
|
|
|
- Pasting an image from the clipboard creates an image attachment chip.
|
|
- The image data is base64 encoded and associated with the attachment.
|
|
- The attachment chip has a suitable display name (e.g., `[Image #1]`).
|
|
- Users can clear the image attachment.
|