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

Aperta
#1,101 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jaeone94 ci sta già lavorando.

Dal 3/11/2026.

  • #1136 di @skishore23 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Python
Stelle
1k
Fork
176
Merge medio
1g 11h
PR unite (30g)
87

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Comfy-Org/comfy-cli

Tutte le issue di Comfy-Org/comfy-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.