PR #10745 aims to
fix: prevent saving active workflow content to inactive tab on close## Summary - Closing an inactive workflow tab and clicking "Save" overwrites that workflow with the **active** tab's content, causing permanent data loss - `saveWorkflow()` and `saveWorkflowAs()` call `checkState()` which serializes `app.rootGraph` (the active canvas) into the inactive workflow's `changeTracker.activeState` - Guard `checkState()` to only run when the workflow being saved is the a
Test focus: Verify that the `checkState()` guard prevents the active graph from overwriting the inactive tab during a save.
Prerequisites: Open the default workflow (Tab A)., Create a new blank workflow (Tab B) and add a single Note node to it., Click on Tab A to make it active, leaving Tab B inactive but modified.
Steps: Click the close (X) button on the inactive Tab B. → Click Save in the unsaved changes dialog. → Enter a name for the workflow and press Enter. → Reopen the newly saved 'FixedWorkflow' from the workflows list. → Observe the contents of the reopened workflow.