Skip to content

Slide a marked-up image into its composer thumbnail - #98

Merged
Tarquinen merged 1 commit into
devfrom
fix-markup-handoff
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
devfrom
fix-markup-handoff

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Adding a marked-up image to the prompt now slides the image into its thumbnail in the composer, so you can see where it went.

Before, after Add to Prompt the editor faded out over the viewer's unmarked original. That original then flew back to the chat while the marked-up copy popped into the composer by itself, and the composer jumped as its attachment row appeared.

  • The marked-up copy itself leaves the editor from where it sits and moves on one spring into its new thumbnail. Its corners grow to the thumbnail's radius, the crop matches the thumbnail's square, the × comes along with it, and the viewer's backdrop fades
  • The attachment row opens on the same spring, so the composer doesn't jump
  • If the row is full and scrolls, it scrolls the new slot into view first, so the image lands on its slot and not off-screen
  • The same thing happens for chat images, paused video frames and re-edits of a photo in the composer. Under Reduce Motion the viewer just fades

Before and after, from a chat image:

pr-before-after.mp4

A full attachment row that scrolls, before and after:

pr-busy-overflow.mp4

Checked on the emulator against session-lab at 1× and 0.25× in light and dark, with the keyboard up and down: chat image, paused video frame, re-editing a composer photo, a long scrolling draft, 3 and 6 attachments, images next to a file chip, and Reduce Motion. Closing, swiping or discarding without adding still work, as do the normal image and video viewers and sending the image. scripts/check.sh passes for media and session.

After Add to Prompt, the drawing editor's window faded out over the
viewer's unmarked original, which then flew back to the transcript
while the marked-up copy popped into the composer row on its own, and
the composer jumped as the row appeared.

Now the marked-up copy itself leaves the editor where it sits and
moves on one Flight spring into its new thumbnail: the corners grow to
the thumbnail's radius, the crop matches its square, the × rides along
and the viewer's backdrop fades. The editor's window goes at once, the
row opens on the same spring, and an overflowing row scrolls the new
slot into view under the backdrop first. The same hand-off runs for
transcript images, paused video frames and re-edits of a composer
photo. Under Reduce Motion the viewer fades out instead.

ImageDrawingAdd now returns the new thumbnail's media ID (null when the
prompt refused the copy), and the viewer's closesAfterDrawing is
replaced by a handOff state.

Verified on the emulator at 1x and 0.25x in light and dark, keyboard up
and down: transcript image, paused video frame, composer re-edit, a
long scrolling draft, 3 and 6 attachments, images with a file chip,
Reduce Motion, closing, swiping and discarding without adding, and
sending the image. vm.sh check :feature:media :feature:session passes.
@Tarquinen
Tarquinen merged commit 415db9c into dev Nov 16, 2026
3 checks passed

This branch was previously deployed

1 inactive deployment
release — 38c9f10e Deployed Nov 16, 2026 by Tarquinen via check #332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant