Paste or drop an image into the composer #128

Merged
littlefox merged 2 commits from issue-105-paste-images into main 2026-10-18 20:11:16 +00:00
Owner

Closes #105

  • Pasting an image or dropping an image file on the composer puts it in the composer's file field, as if picked, and fires its change event: preview, scaling and the re-scale on send are the picker's (#33).
  • Text pastes and drops without files are untouched. A hint under the image field says it can be done.

Verified: new paste.spec.ts on desktop/Android/iPhone (a text paste isn't intercepted; a pasted PNG becomes the image with name, type and preview; a dropped one replaces it); looked at the screenshot; clippy native/wasm/desktop clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #105 - Pasting an image or dropping an image file on the composer puts it in the composer's file field, as if picked, and fires its change event: preview, scaling and the re-scale on send are the picker's (#33). - Text pastes and drops without files are untouched. A hint under the image field says it can be done. Verified: new `paste.spec.ts` on desktop/Android/iPhone (a text paste isn't intercepted; a pasted PNG becomes the image with name, type and preview; a dropped one replaces it); looked at the screenshot; clippy native/wasm/desktop clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Ctrl+V a screenshot or drop a photo anywhere on the composer: it goes
into the composer's file field as if picked there, so preview, scaling
and the re-scale on send are the picker's. Text pastes are untouched. A
hint under the field says it can be done.

Refs #105

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge remote-tracking branch 'origin/main' into issue-105-paste-images
All checks were successful
ci / check (push) Successful in 10m24s
ci / desktop (push) Successful in 14m46s
ci / e2e (push) Successful in 18m24s
157cf22030
littlefox referenced this pull request from a commit 2026-10-19 05:23:04 +00:00
Sign in to join this conversation.
No description provided.