mirror of
https://github.com/Comfy-Org/comfy-python-sdk.git
synced 2026-11-04 23:37:47 +00:00
[PR #65] [MERGED] feat(workflows): add remove_node and _is_link helper #64
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
effort:medium
effort:small
effort:small
effort:trivial
priority:nice-to-have
priority:nice-to-have
priority:recommended
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-python-sdk#64
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-python-sdk/pull/65
Author: @jab416171
Created: 8/21/2026
Status: ✅ Merged
Merged: 8/27/2026
Merged by: @wei-hai
Base:
main← Head:main📝 Commits (1)
c1b4ea9feat(workflows): add remove_node and _is_link helper📊 Changes
2 files changed (+205 additions, -0 deletions)
View changed files
📝
src/comfy_sdk/workflows.py(+63 -0)📝
tests/test_workflows.py(+142 -0)📄 Description
Add _is_link() helper to detect ComfyUI API-format connection links ([node_id, output_index]). Add remove_node() method to Workflow that deletes a node and redirects downstream links back to their sources when the removed node has exactly one link input.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.