You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve saved auto-detect output settings across workflow reloads
When a workflow is reloaded, the auto-detect source dimensions may change
technically (e.g. preview URLs, backend signatures) even though the source
image itself did not change size. Previously, these technical changes could
overwrite user-modified output dimensions.
Introduce workflow-restore tracking state and a dedicated check that keeps
the saved width/height when:
- the workflow is being restored, and the newly detected dimensions match
the restored source dimensions, or
- the saved auto-detect properties match the newly detected dimensions.
Hooks:
- ResolutionMasterCanvas: added restoredAutoDetectDimensions and
autoDetectWorkflowRestorePending state.
- Node lifecycle: call prepareAutoDetectWorkflowRestore() during
onConfigure so restore state is initialized at workflow load time.
- Auto-detect methods: reset restore state when source changes or backend
fallback occurs, and use shouldPreserveRestoredAutoDetectSettings() to
decide whether to keep existing output.
Tests:
- Cover preserved output when technical signatures change but source size
does not.
- Cover clearing restore state when a genuinely different size is detected.
- Cover onConfigure ordering in node lifecycle.
0 commit comments