fix: guard configured event to prevent state wipe during editing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Koshi
2026-03-27 22:10:52 +01:00
parent 5c07cc8548
commit 491fb9bf01

View File

@@ -350,7 +350,13 @@ export const useAppModeStore = defineStore('appMode', () => {
useEventListener(
() => app.rootGraph?.events,
'configured',
resetSelectedToWorkflow
() => {
// Only reload from saved state during graph loading, not while
// the user is actively editing in builder/app mode.
if (!isBuilderMode.value && !isAppMode.value) {
resetSelectedToWorkflow()
}
}
)
function persistLinearData() {