Repository navigation
fix(workflow): recall generation graphs from images - #9906
Merged
Merged
Conversation
Load saved generation graphs when images have no authored workflow. Preserve metadata inputs and normalize historical node values on recall.
joshistoast
enabled auto-merge (squash)
October 18, 2026 02:58
JPPhoto
self-requested a review
October 18, 2026 03:03
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
Generate images already contain their execution graph, but Load Workflow only read an authored workflow and reported the workflow as missing. Fall back to converting the saved graph into an editable workflow, matching legacy behavior and supporting existing images.
Preserve metadata inputs and execution flags, normalize historical image-collection and frame-count values, and keep conversion behind the lazy graph-preview entry.
QA Instructions
From
invokeai/frontend/webv2:pnpm lint— passed.pnpm test— 10,448 tests passed on the final candidate.pnpm test:browser— 2,969 tests passed. The initial run had an unrelated toast hover timeout; its 28 tests passed in isolation and the full browser rerun passed. The 62 image-action browser tests passed again after the final changes.pnpm test:fixtures— passed.pnpm test:performance:architecture— passed; production build budgets passed again after the compatibility fix. No baselines or budgets changed.pnpm test:project-files:browserandpnpm test:accessibility:browser— passed.Reproduction: generate an image, open its context menu, and choose Load Workflow. The editor should open the image's saved graph rather than report a missing workflow. Authored workflows still take precedence.
The final production build was also checked with isolated browser fixtures: Load Workflow opened both recalled nodes with the saved prompt and no page errors. No GPU generation was run.
Review
Resolved metadata-key safety, eager-loading, and historical graph-input compatibility issues. No material findings remain. Regression coverage checks graph conversion through serialization and compilation, malformed graphs, template failures, and account/project changes while loading.
Compatibility / Rollout
Uses the existing embedded graph and workflow API. No backend, queue, persisted-schema, or migration changes are required. Unavailable node types retain the existing best-effort conversion warning.
Checklist
What's Newcopy (if doing a release after this PR) — not a release.Need help on this PR? Tag
@codesmith-botwith what you need.