[PR #65] [MERGED] feat(workflows): add remove_node and _is_link helper #64

Closed
opened 2026-10-31 22:01:07 +00:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • c1b4ea9 feat(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.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/comfy-python-sdk/pull/65 **Author:** [@jab416171](https://github.com/jab416171) **Created:** 8/21/2026 **Status:** ✅ Merged **Merged:** 8/27/2026 **Merged by:** [@wei-hai](https://github.com/wei-hai) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`c1b4ea9`](https://github.com/Comfy-Org/comfy-python-sdk/commit/c1b4ea9885c3692ded1a67babf14aa5add156702) feat(workflows): add remove_node and _is_link helper ### 📊 Changes **2 files changed** (+205 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/comfy_sdk/workflows.py` (+63 -0) 📝 `tests/test_workflows.py` (+142 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 22:01:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/comfy-python-sdk#64
No description provided.