[Enhancement] workflow set-slot: support toggling node mode (bypass/mute)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 48/100
Línea de trabajo
Comienza con los puntos de entrada existentes comfy workflow set-slot y slots, y después lee workflow_to_api.py para entender cómo se resuelven los nodos omitidos o silenciados. Sigue el direccionamiento existente de instance/inner antes de elegir entre las interfaces propuestas. Se considera terminado cuando la CLI puede establecer un nodo en normal, mute o bypass, conservando el direccionamiento del subgrafo y eliminando la necesidad del script de workaround.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Motivation
comfy workflow slots / set-slot cover widget values, which makes value-level presets (resolution, steps, checkpoint name) fully scriptable against one canonical frontend-format file. But a very common preset dimension is structural: switching a node on/off — the canonical example being a LoRA loader that a "draft" preset enables and a "finals" preset disables.
The GUI answer is bypass (Ctrl+B, litegraph mode 4) and workflow_to_api.py already resolves bypassed/muted nodes correctly at conversion — the only missing piece is a CLI verb to set the mode.
Setting a LoRA's strength_model=0 is not a substitute: ComfyUI registers zero-strength patches unconditionally (model_patcher.add_patches has no short-circuit), so under weight streaming you still pay the full per-step re-merge for a patch with zero effect. On an 11 GB card we measured that tax at ~20% of a whole render — a silent perf trap that mode toggling avoids.
Proposal
Either of:
- Extend the
set-slotaddress space with a pseudo-input, e.g.
comfy workflow set-slot wf.json '105/200._mode=bypass'(acceptingnormal|mute|bypass), or - A sibling verb:
comfy workflow set-mode wf.json 105/200=bypass.
Subgraph-interior addressing (instance/inner) already exists in slots, so either form composes with it naturally. slots output could also list each node's current mode so agents can discover toggleable structure.
Current workaround
We generate preset variants by running set-slot --stdout for values and then patching node.mode = 4 for a declared bypass: list in a ~40-line script — it works, but it reaches into the file format where everything else goes through the CLI, and we'd happily delete it.
- Lenguaje dominante
- Python
- Estrellas
- 1k
- Forks
- 176
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 87
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Comfy-Org/comfy-cli
-
test_file_utils umask tests assert against a umask the code never reads (import-time _UMASK), so they only pass on a 0o022 hostPosiblemente ocupada @neverbiasu la tomó hace 10 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Comfy-Org/comfy-cli#907 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Comfy-Org/comfy-cli#781 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
`comfy launch --background` fails with FileNotFoundError when comfy-cli is invoked by pathPosiblemente ocupada @RaphaelFakhri la tomó hace 43 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Comfy-Org/comfy-cli#691 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Comfy-Org/comfy-cli#670 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de Comfy-Org/comfy-cli
Issues similares
-
add entry to blockAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Posiblemente ocupada @0z5a la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
plot_graph crashes when a mesh node has no m2m edgePosiblemente ocupada @tygvi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mllam/neural-lam#883 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
future-agi/future-agi#4092 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld wholeAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
WingedGuardian/GENesis-AGI#4641 ·
Los mantenedores suelen responder en 1 día