Commit Graph
3 Commits
Author SHA1 Message Date
ausboss e7f2bf147a Add live per-node progress badges
Nodes can push a status line to their own badge through the new
push_node_status helper, which is a silent no-op without a live
PromptServer so a status update can never fail the run reporting it.
The LaMa inpainter emits "frame i/N" alongside its progress bar,
threading the node id in through a hidden UNIQUE_ID input -- hidden
entries never become widgets, so its visible inputs and saved
widgets_values are unchanged.

The badge rides its own Chrome setting, on by default: unlike the
runtime badge it only exists while a node is running, and it is
retired when the node moves on or the run ends, fails, or is stopped.
2026-08-13 20:13:58 -05:00
ausboss 2f39804290 Add per-node runtime badges after a run
AusBoss.Chrome.NodeRuntime (default off - it adds visual noise) times
each node from the api's executing events: execution_start resets the
accumulator and clears stale badges, every node handoff closes out the
previous node's elapsed time, and revisits from batched loops sum. The
elapsed seconds land on the node object and a chained
LGraphNode.onDrawForeground (installed once, via chainCallback) draws a
small rounded badge at the node's top-right, skipped below canvas scale
0.5. The duration formatter (49ms / 1.50s / 1m35s) and the
accumulate-elapsed transition are pure in js/shared/chrome.mjs with
node:test coverage.
2026-08-13 09:39:25 -05:00
ausboss a6e8a89784 Show queue status in the favicon and tab title
New pack-wide chrome feature: while a prompt is executing the tab icon
swaps to a runtime-drawn active variant of the brand teal rounded
square, and the tab title carries a "(N)" queue-depth prefix that
disappears when the queue drains. AusBoss.Chrome.FaviconStatus
(default on) tears everything down through one AbortController and
restores the browser-default icon and title immediately when disabled.
Title composition is pure in js/shared/chrome.mjs with node:test
coverage, including the never-double-prefix guarantee.
2026-08-13 09:39:07 -05:00