Skip to content

fix(builder): snapshot undo history before property panel saves - #42

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-6a31
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-6a31

Conversation

@cursor

@cursor cursor Bot commented Jul 30, 2026

Copy link
Copy Markdown

Bug

Property panel edits were persisted via per-node PATCH but never recorded in client undo history. A subsequent undo sent a full-workflow PATCH with stale node data, silently reverting property edits on the server.

Root cause

NodePropertiesPanel.handleSave called node PATCH + SWR mutate without saveToHistory.

Fix

Add onBeforeSave callback that snapshots the current workflow into history before property PATCH.

Validation

tests/components/node-properties-panel.test.tsx

Open in Web View Automation 

Co-authored-by: esadrianno <esadrianno@gmail.com>
@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
v0-agent-kit Ready Ready Preview, v0 Jul 30, 2026 11:12am

This branch was successfully deployed

1 active deployment
Preview — 9b5b89a9 Deployed Jul 30, 2026 by vercel[bot]
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