Release 1.2.0#3
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes completed card previews showing the wrong image in multi-stage workflows,
and adds real-time decoded image updates on the running card as each stage finishes.
Problem
Wrong image on completed cards — The
/historyAPI returns node outputssorted by node ID (ascending), not by execution order. For multi-stage
workflows (e.g. base-gen → upscale), the completed card would show the
base-gen image instead of the final upscaled result.
Preview freezes during upscaling — The running card showed live latent
previews during base-gen sampling, but once the upscale KSampler started,
the card stayed frozen on the base-gen image and stopped updating.
Solution
outputCachemodule — Listens toexecutedWebSocket events and cachesthe last output per
promptIdin localStorage (max 200 entries, FIFO eviction).firstOutputnow performs a cache-first lookup, bypassing the unreliablenode-ID-sorted dict from the history API.
onExecutedhandler — Updates the running card preview immediately whena node completes, so the card transitions through each stage's decoded image
(base image → upscaled image) as execution progresses.
Commits (4)
feat: add outputCache modulerefactor: integrate outputCache - migrate firstOutput and pass promptIdfeat: listen to executed events for real-time running card previewtest: add preview.js unit tests and fix E2E spec robustnessTesting
npm test)npm run test:e2e)