Files
shootthesound 5959a66a33 feat: auto-run base generation when Edit Mode is queued with no session (2.8.0)
Open a workflow saved in Edit Mode (or restart ComfyUI, clearing the
per-node session) and press Queue — either ComfyUI's button or the
in-node one — and the Edit branch used to seed its cache from the wired
EMPTY latent and decode a grey canvas. Now run() detects that exact
state — no session, no loaded image, wired latent is BLANK — and runs
the Sampler-Mode base generation instead, flagging the JS
(Angelo_auto_sampler) to flip the Mode widget so the UI matches what
ran.

Blank detection is uniform-fill, not all-zeros: EmptySD3LatentImage
fills with the latent shift (0.0609), not zeros, and no real image
latent is perfectly uniform.

Deliberately narrow: a wired NON-blank latent still enters Edit Mode
untouched (the downstream-refiner pattern), and a mid-session browser
refresh is unaffected (server state survives, so no auto-switch).
2026-07-24 01:54:07 +01:00
..