feat(workspace): image paste + drag-drop attachments in foreman composer #571

Closed
opened 2026-04-30 16:53:49 +00:00 by claude-desktop · 0 comments
Collaborator

User story

As an operator, I want to paste a screenshot or drag an image into the composer, so I can show the foreman a visual artefact without leaving the browser.

Acceptance criteria

  • Pasting an image (clipboard image/*) into the composer attaches it; a chip appears above the textarea showing thumbnail + remove.
  • Drag-and-dropping any file onto the composer attaches it; image types render as a chip with thumbnail, others as a generic file chip.
  • Send wraps attachments into the foreman chat payload as base64 (small files inline) or via a new POST /foreman/uploads for larger images, returning a path the SDK message references.
  • Server passes the attachment to the SDK as a content block (image type for images, file mention for others).
  • The paste / drop area honours paste and dragover accessibility hints; reduced-motion respected.

Out of scope

  • Camera capture on mobile (defer).
  • Audio / video attachments.

References

  • Spec: specs/workspace-chat-overhaul.md § P8.
## User story As an operator, I want to paste a screenshot or drag an image into the composer, so I can show the foreman a visual artefact without leaving the browser. ## Acceptance criteria - [ ] Pasting an image (clipboard `image/*`) into the composer attaches it; a chip appears above the textarea showing thumbnail + remove. - [ ] Drag-and-dropping any file onto the composer attaches it; image types render as a chip with thumbnail, others as a generic file chip. - [ ] Send wraps attachments into the foreman chat payload as base64 (small files inline) or via a new `POST /foreman/uploads` for larger images, returning a path the SDK message references. - [ ] Server passes the attachment to the SDK as a content block (image type for images, file mention for others). - [ ] The paste / drop area honours `paste` and `dragover` accessibility hints; reduced-motion respected. ## Out of scope - Camera capture on mobile (defer). - Audio / video attachments. ## References - Spec: `specs/workspace-chat-overhaul.md` § P8.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
charles/claude-hooks#571
No description provided.