mirror of
https://github.com/Comfy-Org/comfy-swift-sdk.git
synced 2026-11-04 23:47:26 +00:00
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-swift-sdk#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-swift-sdk/pull/22
Author: @mattmillerai
Created: 6/21/2026
Status: ✅ Merged
Merged: 6/21/2026
Merged by: @mattmillerai
Base:
main← Head:fix/guard-multiple-image-inputs📝 Commits (1)
ff6a91bfix(transport): fail fast on multiple image inputs instead of silent last-wins📊 Changes
2 files changed (+78 additions, -0 deletions)
View changed files
📝
Sources/ComfySwiftSDK/Internal/Transport.swift(+9 -0)➕
Tests/ComfySwiftSDKTests/MultipleImageInputGuardTests.swift(+69 -0)📄 Description
Interim fix for #16 — does not close it. The real fix (keyed input→node mapping) stays tracked there.
submitJobpatches everyLoadImagenode per image input, so >1 image silently collapsed to "last image wins" with no error. This adds a fail-fast guard that rejects more than one image input up front:Silent wrong output → clear, descriptive failure. Single- and zero-image requests are unaffected.
Tests: two-image request throws the specific error, and short-circuits before any network call (asserts zero outbound requests).
Leaving #16 open for the keyed-mapping feature (a 0.2.0 item).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.