Add conversational image editing and attachment improvements - #137
Merged
Merged
Conversation
- Add `edit_image` tool support for compatible vision image models - Preserve image generation and editing attempt state across restore and regenerate flows - Support ordered multi-image photo library selection and attachment previews - Reuse conversation images as new pending attachments without persisting duplicates - Scope pending drag-and-drop and photo loads to the active conversation - Update chat and repository tests for image history, reattachment, and tool definitions - Refresh changelog and TestFlight notes for the new image workflows
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.
Summary
Related to #135.
edit_imageso a tool-capable chat model can edit a selected image from the conversation using the configured dedicated image specialist and/images/edits.How editing works
With a compatible dedicated image model selected under Image and Vision → Image Generation, the chat can resolve an earlier image by its attachment UUID and send the actual image plus the requested change to
/images/edits. For example: generate a cat, then ask to change the background while keeping the same cat. Reattachment is optional when referring to an image already in the conversation; Attach Again lets the user select one explicitly.Editing targets one image per request. The principal must support tool calling and lack native image generation; the selected dedicated image specialist must advertise vision and its provider must support image editing. Failed edits do not fall back to text-only generation.
Verification
git diff --checkpassed during implementation.Scope
This PR focuses on single-image conversational editing and attachment UX. Clipboard image paste, multi-image reference editing, and delegated editing through chat-based image specialists are outside this change.