Skip to content

0.1.33 (beta)

Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 13 Sep 17:50
· 7 commits to main since this release

A burst of quick saves keeps your newest edit

Saving a note several times in quick succession — which Obsidian does on its own while you type — could lose everything after the first save. The sync would finish with the text as it was when it started, and the rest was dropped.

That much would only have meant Copal was behind. The real problem came later: because the note on your device and the copy Copal held had quietly diverged, the older text was written back over your file the next time that note synced. That could be minutes or days afterwards, whenever a change arrived from another device, or when you signed out, or simply the next time you opened Obsidian. There was no warning and nothing in the interface to show it had happened.

Local edits are now queued per note, and the file is read when its turn arrives rather than when the save fired — so a burst of saves syncs the final state instead of the first one. Separately, the plugin no longer treats "I have not seen this file before" as permission to overwrite it: if a note changed while it was not watching, that change is merged in rather than discarded.

This affects 0.1.32 and earlier. If you have notes you edited quickly and then closed, they are worth a look.

Signing in only ever talks to Copal

When you sign in, the plugin asks Copal where to send you and where to exchange the result. Those addresses came back from the server and were used exactly as given, with nothing checking them — so a bad or tampered response could have pointed the sign-in, and the credential it returns, at somewhere that was not Copal.

Every address in that exchange is now checked before anything is sent to it: it must be a Copal address, over https, and all of them must belong to the same authorization server that published them. Nothing about how you sign in changes.

Reaching this needed control of Copal's own servers or a broken secure connection, so it is not something that could be done from the outside. It is fixed because of what it would have cost if it ever happened.