Skip to content

fix(session): preserve multi-selection changes in persisted sessions#238

Merged
devmobasa merged 1 commit into
mainfrom
fix/237-compound-undo-session-save
May 31, 2026
Merged

fix(session): preserve multi-selection changes in persisted sessions#238
devmobasa merged 1 commit into
mainfrom
fix/237-compound-undo-session-save

Conversation

@devmobasa
Copy link
Copy Markdown
Owner

@devmobasa devmobasa commented May 31, 2026

Fixes #237.

Session saves could fail after actions that create compound undo history, such as moving or editing properties for multiple selected strokes. UndoAction used serde internal tagging, but its Compound(Vec<UndoAction>) variant was a newtype variant, which serde_json cannot serialize. This caused the session payload serialization failure and left the previous session file in place.

This is intentionally narrow and builds on top of #236. It does not change the clear-marker, backup, recovery, or contentless-save behavior from #236; it only fixes serialization of compound undo history created by multi-selection edits

@devmobasa devmobasa merged commit 6ce79fe into main May 31, 2026
2 checks passed
@devmobasa devmobasa deleted the fix/237-compound-undo-session-save branch May 31, 2026 19:14
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.

[BUG] Session not saved if moved more than 2 strokes

1 participant