Selector or count rebuild after a sub-widget write replays differently by apply order

Abierto
#1,101 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@jaeone94 ya está trabajando en esto.

Desde el 3/11/2026.

  • #1136 de @skishore23 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

A batch that writes a DynamicCombo sub-widget and then switches the selector away and back replays to different graphs depending on apply order.

On a Gen node already at model = max:

specs = [model.mode = quality, model = base, model = max]
  • Forward replay: the model = max rebuild refills model.mode with its default, so the node ends at balanced.
  • Reverse replay: model = max wins first and model = base loses the gate, so no rebuild happens. model.mode = quality still applies, so the node ends at quality.

The rebuild resets the sub-widget's value but leaves its _widget_stamps entry alone, so the earlier sub-widget write keeps winning its gate in one order and not the other. A DynamicGroup shrink-then-regrow in one batch has the same shape.

With #1007 the ops in a batch are minted in increasing order, so this shape diverges every time instead of depending on random op_ids. #1007 narrows its amendment's convergence claim and leaves this open.

Possible fixes: have a selector or count rebuild bump or reset the stamps of the sub-widgets it replaces, or refuse a batch that writes a sub-widget before rebuilding its selector or count.

Found by Cursor review on #1007.

Lenguaje dominante
Python
Estrellas
1k
Forks
176
Merge medio
1 d 11 h
PR fusionados (30 d)
87

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Comfy-Org/comfy-cli

Todos los issues de Comfy-Org/comfy-cli

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.