Skip to content

Releases

1.1.0

Choose a tag to compare

@bimsonz bimsonz released this 30 Oct 19:42

Copal 1.1.0. Requires Obsidian 1.11.4 or later.

Your Copal sign-in now lives in Obsidian's secure storage on this device, encrypted by your operating system's keychain, instead of in the vault's plugin data. A synced or shared copy of the vault no longer carries it.

After updating, sign in once more on each device. Copal revokes the sign-in it finds in the old location, so no copy of it can be used, and shows a notice saying so.

Update every device that syncs this vault. An older version keeps writing its sign-in to the old location, and this one revokes it.

1.0.1

Choose a tag to compare

@bimsonz bimsonz released this 25 Oct 00:15

Copal 1.0.1. Requires Obsidian 1.7.2 or later.

1.0.0

Choose a tag to compare

@bimsonz bimsonz released this 24 Oct 03:24

Copal 1.0.0. Requires Obsidian 1.7.2 or later.

0.2.0

0.2.0 Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 24 Oct 01:56

Copal 0.2.0. Requires Obsidian 1.7.2 or later.

0.1.36 (beta)

0.1.36 (beta) Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 15 Sep 18:47

Closed notes now sync in pages instead of one at a time.

A large vault syncs in minutes, not an hour. Each closed note used to get its own ticket, its own WebSocket and a 1.5 second settle afterwards. A 10,000 note vault took around 53 minutes to sync for the first time and spent roughly one API call per note, which is more than a Solo plan allows in a day, so it never finished. Notes now travel in pages of up to 100 over a single request: about 10 minutes and around 100 calls for the same vault. Sockets are kept for the note you have open and for the change feed.

Edits made during a first sync are no longer lost. The watcher gate stayed shut for the whole initial reconcile, so anything you created, edited, deleted or renamed while it ran was discarded, with nothing queued to replay it. Those changes are now queued ahead of the import.

Also fixed:

  • A burst of autosaves to one note collapses into a single exchange carrying your newest text, rather than a queue of stale snapshots.
  • A note deleted on another device is moved to trash locally instead of reappearing.
  • Reopening a note no longer races its own teardown, which could leave it waiting forever to load.

Beta, installed through BRAT. Please report anything odd.

0.1.35 (beta)

0.1.35 (beta) Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 14 Sep 22:41

The 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.

0.1.34 (beta)

0.1.34 (beta) Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 14 Sep 20:15

Five hardening fixes. Nothing here changes how the plugin is used, and none of them needed anything more than a bad or tampered response from the server to matter — but each is the kind of thing that costs a lot if it ever does.

The realtime connection is now checked to be Copal's, not just encrypted

0.1.33 started checking every address used to sign in. The live sync connection — the one that carries your note text as you type — was checked to be encrypted but never checked to be Copal's. A bad response from the server could have handed back a perfectly valid encrypted address pointing somewhere else, and the connection would have opened to it without complaint.

Both now go through the same check. Same rule, same place in the code, so the two cannot drift apart again.

A half-finished sign-in expires, and cannot be reused

A sign-in that was started and never completed stayed valid until Obsidian was closed. Left overnight in a browser tab, it was still usable the next day by anything on the device that could open a Copal link.

It now expires after ten minutes, and is used once. Previously a sign-in that failed at the last step left the door open to try again with the same credentials.

An error coming back from the sign-in page is no longer shown as its own text

When sign-in fails, the reason arrives back in the link Obsidian opens — and anything on your device can open that link. That text was shown to you directly, which meant a stranger could put any message they liked inside your vault with Copal's name attached to it. The wording is now fixed and written by us; the original is logged for diagnosis and never displayed.

A bad message from the server stops that note, not the note's contents

A malformed message used to fail part-way through applying, leaving the note neither as it was nor as the server has it, with nothing reported and sync appearing to hang for eight seconds. The connection for that note is now dropped cleanly and reported, and reconnecting starts a fresh sync. Attachment downloads are also capped, so an enormous one cannot exhaust memory — which on a phone means the app.

Conflict copies no longer overwrite each other

When two devices changed a note in ways that could not be merged, the older text was kept beside it as a (conflicted copy). The name was always the same, so a second conflict on that note overwrote the copy the first one had saved — in the one place whose whole purpose is that nothing is lost.

Copies now carry the time and the device that made them. Existing ones are untouched.

0.1.33 (beta)

0.1.33 (beta) Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 13 Sep 17:50

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.

0.1.32 (beta)

0.1.32 (beta) Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 13 Sep 15:40

Disconnecting now takes the whole connection back

0.1.31 made signing out tell Copal to forget the sign-in, so a copy of your vault could no longer renew it. But Copal still had your permission on record, which meant a disconnected vault kept showing under Connected agents on your account page, and access already granted stayed valid for its remaining hour.

Disconnect now takes that permission back too. Sign out deliberately does not — it leaves the permission in place so signing back in resumes without asking you to approve Copal again. Either way the sign-in itself is revoked, which is the part that matters if a copy of your vault has left the device.

The one-time cleanup can no longer stop the plugin loading

0.1.31 runs a one-off discard of the old shared note history at startup, and waited on it with no time limit. A stuck browser database could have left the plugin loading forever. It now gives up and tries again on the next launch, and only records itself as done if it actually finished.

A note on (conflicted copy) files

The 0.1.31 notes said the cleanup loses "merge lineage" and stopped there. What that looks like in practice is worth stating: without the history, the plugin cannot tell a note that is merely out of date from one it has never seen, so the first time you open a note that was edited somewhere else while this device was closed, you get the up-to-date note plus a (conflicted copy) holding the older local text. One per note that had drifted. Delete them once you have looked.

Nothing is lost, and that is the point: the alternative was to push this device's older text up, which would overwrite newer edits made elsewhere.

This behaviour is unchanged from 0.1.31 — only the description was incomplete. Those notes have been amended too.

0.1.31 (beta)

0.1.31 (beta) Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 13 Sep 04:10

Two security fixes. Please read the warning before upgrading.

Signing out now revokes your sign-in

Sign out (and Disconnect) now tell Copal to revoke the sign-in, instead of only deleting it from this vault's plugin data.

That matters because the plugin data lives inside the vault. If you sync the vault with iCloud, Obsidian Sync or git, your sign-in travels with it, and before this build every one of those copies could keep renewing itself for up to 14 days after you signed out. The settings pane's advice to "sign out on devices you no longer use" now does what it says.

Revocation is best-effort: if Copal cannot be reached you are still signed out here, and the plugin tells you the sign-in was not revoked rather than claiming a clean sign-out. An access token already issued can take up to an hour to lapse.

Local note history is kept per Copal vault

Obsidian loads every vault window from one origin, so two folders linked to different Copal vaults or different accounts were sharing one set of local documents. Notes could cross between accounts, two notes at the same path merged into one, and disconnecting one folder wiped the other's history.

⚠️ This build discards local merge history once, on first load

In a folder that had shared its local documents there is no way to tell which vault each one belonged to, and keeping them would make the mixing permanent. So they are discarded.

  • Your Markdown files are untouched. Nothing is uploaded or deleted on the server, and no note text is lost.
  • Sync rebuilds from the server plus what is on disk.
  • What is lost is merge lineage: an edit made offline on two devices at the same time is resolved more coarsely than it would have been.

You may see (conflicted copy) files, and that is this change doing its job. Without the lineage, the plugin can no longer tell a file that is merely out of date from one it has never seen. So the first time you open a note that was edited somewhere else while this device was closed, you get the up-to-date note plus a (conflicted copy) holding the older local text, rather than a silent merge. One copy per note that had drifted; delete them once you have looked. The alternative was to push this device's older text up on upgrade, which would overwrite newer edits made elsewhere, so keeping both is deliberate.

Also

  • A sign-out during a token renewal can no longer undo itself.
  • A sync socket can no longer open after the sign-out that stopped it.