mirror of
https://github.com/penpot/penpot.git
synced 2026-11-04 09:00:37 +00:00
A branch derives its data from its merge base and op log, so a save that repairs pre-existing damage (penpot#12524) must record the repair changes in the op log, ahead of the client's changes. The new test inherits frame damage from main through the merge base, saves on the branch, and checks five things. The op log row equals the repair changes followed by the client's changes. A reload of the branch shows the repaired state, and a second save needs no repair. The repair snapshot of the branch, which has no data row of its own, is readable and keeps the damage. The branch diff lists the repaired shape, and the merge into main succeeds. Dropping the repair changes from the op log fails four of these assertions. AI-assisted-by: claude-opus-5-5 Signed-off-by: Álvaro Tejero Cantero <alvorithm@teje.ro>