Repository navigation
0.1.35 (beta)
Pre-releaseThe last of the security work, and the settings file stops being written by five things at once.
Signing out now really signs you out
Copal's sign-in is kept in this vault's plugin data file. Five separate parts of the plugin wrote to that file — your sign-in, the sync position, two queues of pending deletes, and the attachment record — and each one wrote the whole file back. So a sync finishing at the wrong moment could put your sign-in back a fraction of a second after you removed it. Sign out said it had worked, and the credential was still there, in a file that travels with your vault to iCloud, Obsidian Sync or git.
There is now one thing that writes that file, and nothing to put back. The credential is gone the moment you sign out, whatever else is happening.
A sign-out on one device is followed on the others
Because the file travels with the vault, another copy of it can arrive while Obsidian is open. Copal now notices when that happens. It takes what belongs to the account — which vault this folder is linked to, and whether you are signed in elsewhere — and keeps its own sync progress, which is about this device and nobody else's business. If you sign out on your laptop, your phone follows.
The plugin reads its settings once instead of constantly
That file was read and rewritten for almost every operation, and it grows with your vault. Opening Copal's settings read it four times; starting a sign-in, about six; every note you opened, once more. It is now read once when Obsidian starts. Disconnecting a vault used to rewrite the whole file five times over; it is two. This is most noticeable on a phone.
Someone else editing a note cannot choose how they appear
When you and an agent, or you and another device, are in the same note, each caret is drawn in its own colour. That colour arrived from the other side and was used as sent. It is now chosen here, from the identity of whoever is typing. Nothing about how it looks changes.
Obsidian review guidelines
Settings and command names, how the plugin registers what it listens to, and a few headings. Nothing you interact with changes; this is groundwork for submitting Copal to the community plugin directory.