feat(media): image_edit remove-background preset (v0.139.0)#238
Merged
Conversation
Adds operation:"remove-background" to image_edit — cuts out the subject (transparent PNG) via Atlas youchuan/v8.1/remove-background, no prompt needed. Rides the same governed generateImage submit+poll; operation takes precedence over scale/prompt. Verified live (transparent PNG). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
image_editgains a namedremove-backgroundpreset. Agents can now cut out an image's subject:No prompt needed → returns a transparent PNG saved as a new Library image (source untouched).
How
youchuan/v8.1/remove-backgroundmodel (IMAGE-TO-IMAGE,generateImage+ singleimage).ImageEditRequestgainsoperation?: 'remove-background'. InAtlasBackend.editImage, mode precedence isoperation→scale(upscale) →prompt(edit); all three ride the samesubmitAndPoll, only the body differs. Bad-model fallback still applies.terminal.editImage(op label/title "Background removed", auditedop=remove-background),POST /api/agent/image/edit, and theimage_editMCP tool (operationenum, validation no longer requires a prompt when a preset/scale is set).Governance
Classified
image.editwith a cost estimate (money-cap applies), auditedimage.edited. No policy/schema change.Verified
operation:"remove-background"→youchuan/v8.1/remove-background→ 822 KB transparent PNG (extpng).typecheck,build,test:governance(68/68) pass.Atlas-only. New route field + MCP tool change → server restart + session relaunch to take effect.
🤖 Generated with Claude Code