Files
ComfyUI_frontend/src
Glary-Bot d3dad95ce7 fix: address review — try/finally restoration and skip RAF on no-op processSelect
CodeRabbit raised two valid concerns:

1. If processSelect throws (e.g. through a node/extension callback), the
   plain assign-and-restore pattern leaves onSelectionChange unset and
   silently drops every later selection change on this canvas.

2. The unconditional RAF schedules a pointless store sync on the
   already-selected sticky-resselect path where processSelect early-returns
   without notifying.

Both fixes are the same shape: replace the temporary undefined with a
sentinel that records whether processSelect actually attempted a
notification, wrap processSelect in try/finally so the original listener
is always restored, then schedule the RAF only if the sentinel fired.

Adds two tests covering each guarantee.
2026-05-06 20:02:22 +00:00
..
2026-01-27 17:59:19 -08:00