Skip to content

Fix/226 autosave pen lag#228

Merged
devmobasa merged 3 commits into
mainfrom
fix/226-autosave-pen-lag
May 22, 2026
Merged

Fix/226 autosave pen lag#228
devmobasa merged 3 commits into
mainfrom
fix/226-autosave-pen-lag

Conversation

@devmobasa
Copy link
Copy Markdown
Owner

Fixes #226

Summary

Fixes the first-stage failure modes behind #226 for image-heavy sessions:

  • defer autosave while pointer/stylus, board pan, zoom pan, toolbar drag, or move interactions are active
  • avoid autosave due-timeout spinning by scheduling a short retry window
  • bound autosave history fallback work so periodic saves do not scan deeply on the UI loop
  • preserve oversized sessions with recovery artifacts when normal save exceeds the configured cap
  • load recovery artifacts safely, while falling back to normal sessions if recovery is corrupt/ empty/too large
  • preflight page/board duplication and cross-board page copy so clone-heavy image sessions are blocked before becoming unsaveable

Details

This PR adds a recovery safety net for oversized saves and prevents common duplicate/copy actions from creating sessions that the normal save path cannot persist.

@devmobasa devmobasa merged commit 6a52afc into main May 22, 2026
2 checks passed
@devmobasa devmobasa deleted the fix/226-autosave-pen-lag branch May 25, 2026 07:29
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] Very Laggy pen for content-heavy pages

1 participant