Skip to content

Preserve workflow edits when saving fails - #321

Draft
dajiaohuang wants to merge 4 commits into
Anil-matcha:mainfrom
dajiaohuang:fix/workflow-save-recovery
Draft

dajiaohuang wants to merge 4 commits into
Anil-matcha:mainfrom
dajiaohuang:fix/workflow-save-recovery

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Nov 14, 2026 •

Copy link
Copy Markdown

Workflow canvas edits currently revert without a visible error when the update request fails. Keep unsaved edits visible, allow an explicit retry, and serialize updates to each workflow so a slower save cannot replace a newer edit. Warn before leaving with unsaved changes and prevent running the previously saved workflow while edits are pending or failed. Start one run per click and isolate canvas state when switching workflows.

Validation: exercised the actual canvas with mocked API responses for a rejected save, retry, switching workflows, close warning, a newer edit while retry was pending, run-button gating and a delayed run across workflow switch; ran frontend TypeScript and focused ESLint (four existing canvas warnings). Real backend and full CI were not run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant