Files
olivv-cs-ComfyUI-FunPack/easy_gen
digital-garbageandClaude Opus 5 64ad739d2b feat: live elapsed timer on the Generate buttons
"Generating (44s)", counted from the press until the finished video comes
back. Both frontends.

Editor: the clock spans the WHOLE operation, not one run. pollStart already
existed but restarts on every run of a multi-run montage, so a press that
kicks off three runs would have shown the third run's age. genWallStart is
wrapped around the public entry points (generate / generateMontage /
generateSelected) in a finally, which no early-return error path can miss.

The tick writes the button's textContent directly and never re-renders the
zone: rebuilding every button once a second would throw away focus and hover
for a number one label owns. For the same reason the elapsed value is NOT in
store state and NOT in fpActionbar — the zone still repaints on gen.state,
which is what starts and stops the ticker.

A run started from Selected counts on that button; a montage or a single
scene fired from the inspector counts on the main one. Re-attaching after a
reload reads "1m 04s+" with a tooltip saying it counts from the reconnect,
since the press happened before the page load and the real total is unknown.

Seconds are zero-padded so the label's width changes once a minute rather
than once a second; tabular figures keep it from twitching in between.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-02 03:17:56 +03:00
..