Repository navigation
Slide a marked-up image into its composer thumbnail - #98
Merged
Merged
Conversation
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.
This was referenced Nov 16, 2026
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.shpasses for media and session.