mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 19:12:46 +00:00
`sync_views` matched views to documents by uid only while the number of documents was unchanged. A `command.batch` (or a recording) that closed a document fell back to matching by position, so the documents after the closed one took their neighbours' views, and a move later in the same batch was not applied to the views. The views are now matched by uid whenever the documents change: a closed document's view is dropped and a new document gets its saved view. Closing from the UI no longer removes the view by hand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>