Repository navigation
Self-hosted ZenNotes server 2.92.0, released with ZenNotes desktop 2.92.0, which can keep an offline copy of a server vault. With this server, a note edited both in an offline copy and on the server merges line by line instead of waiting for review.
Features
- An offline copy can merge a note both sides edited (#91, for ZenNotes/zennotes#1108). A merge starts from the version of the note the copy last saw, and the server can now return it:
GET /api/sync/revision?vault_id=&item=&revision=answers one revision of an item: its path then, whether it was the item's delete, and otherwise its bytes with theirsha256. A revision the server no longer keeps answers 404REVISION_NOT_RETAINED, and the app then asks you instead of merging.- The server keeps the current text of every synced note as well as the change log's, so even a note's first version (one the server had before its first sync request) can be the base of a merge. That costs about one gzipped copy of the vault's text, inside
.zennotes/sync/. A 2.91.1 store is filled in once, on its first load. /api/capabilitiessayssupportsSync: 2. A 2.91.1 server still keeps offline copies; there every note edited on both sides waits for review.
Web client
The browser package is unchanged from 2.91.0 (web-2.91.0-web.hac90318bc29e477e, from ZenNotes/zennotes 82360d73). Go dependencies are unchanged, so vendorHash is unchanged.
Install
Binaries for Linux, macOS and Windows are attached, with SHA256SUMS. Docker: adibhanna/zennotes:2.92.0, 2.92 and latest.
How to test locally
- Run the server on a scratch vault and
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:7878/api/capabilities: it includes"supportsSync": 2. curl -H "Authorization: Bearer $TOKEN" 'http://127.0.0.1:7878/api/sync/manifest?page=1&perPage=50'and note an item'sitem_id,revisionand thevault_id.- Edit that note in the web client, then ask
/api/sync/revision?vault_id=<vault_id>&item=<item_id>&revision=<the old revision>: it answers the text from before your edit.
Verification
Verification before publication: every check passed on #91 and on the release commit 8ce19113 (#92, release.json only), Go tests on Linux, macOS and Windows, the MCP contract, Docker, Nix, and the sync-engine job, where Cloud's real CloudSyncCoordinator now merges a note both sides edited with no conflict left (11 scenarios). Four macOS jobs across the two PRs were cancelled before a runner picked them up (GitHub capacity, zero steps) and passed in their twin runs on the same commit. The release workflow (run 45471236499) built the five binaries from 8ce19113. Every binary matched SHA256SUMS, and the manifest matched the pin byte for byte. The macOS arm64 binary was run on a scratch vault: it reports v2.92.0 and supportsSync: 2, answers revision 1 of a note with its original text after the note was rewritten, answers 404 REVISION_NOT_RETAINED past the current revision and 409 for another vault, and serves the web app at /. ZenNotes desktop 2.92.0 was driven against this server code end to end: a note edited on different lines in an offline copy and on the server merged on its own. Windows and Linux binaries were checked by checksum and by CI.