Files
ComfyUI_frontend/src
DrJKL 03aa8b462d fix(subgraph): reactive price badge for ADR 0009 promoted widgets
Under ADR 0009 host-wins, PromotedWidgetView no longer mutates the
interior widget on edit. The subgraph wrapper's credits badge was still
computed against the inner LGraphNode's raw widget value and so stayed
frozen at the conversion-time price when the user changed a promoted
combo on the wrapper.

- getNodeDisplayPrice / buildJsonataContext accept an optional
  widgetOverrides map so callers can supply effective widget values
  without mutating the inner widget.
- For a SubgraphNode wrapping a single api node, updateSubgraphCredits
  now pushes a wrapper-aware badge getter that builds overrides from
  the wrapper's PromotedWidgetView host values and calls
  getNodeDisplayPrice with them. The legacy static / multi-node
  branches are preserved.
- usePartitionedBadges touches each PromotedWidgetView's host value and
  the inner api node's pricing inputs inside the wrapper's badge
  computed so a promoted edit invalidates the wrapper's badge.

priceBadge.spec.ts tag converted to the typed `{ tag: [...] }` form.

Amp-Thread-ID: https://ampcode.com/threads/T-019e5248-7986-77ae-a78b-41cd08c5af38
Co-authored-by: Amp <amp@ampcode.com>
2026-05-22 18:33:53 -07:00
..