ZenNotes 2.91.0 keeps your edits safe when a self-hosted server goes away: a note you change while the server is unreachable says Not saved, saves itself when the server is back, and never writes over a change another device made in the meantime. Install for OpenCode no longer rewrites your OpenCode settings, and a failed Connect to Remote Vault no longer locks the address field on Windows.
Released from 82360d73 through #1110 on 2026-11-23.
Fixes
- Edits made while your server is away are kept (#1108, from a request by @dwnsdp). A remote vault keeps nothing on your computer, so while its server cannot be reached a save fails. Until now the note only kept the small unsaved dot every pending save shows, nothing tried again when the server came back, and quitting lost the edit. Now:
- The note's header says Not saved (hover it for the reason), and a message stays on screen until the note is saved.
- ZenNotes saves it by itself: a few seconds after the failure, then once a minute, and at once when the connection or the network comes back.
- Nothing is overwritten. If someone changed the same note on the server in the meantime, their version is kept beside yours as Note (server copy). With server 2.91.0 or later the server checks this itself in the same step as the write, so even a change that lands during the save is kept.
- Quitting ZenNotes or closing a window while a note is not saved asks first.
- Install for OpenCode keeps the rest of your config (#1104, reported by @coyotle). OpenCode allows comments and trailing commas in
opencode.json. When the file had them, Install for OpenCode in Settings, MCP read it as empty and wrote back only its own entry, so providers, models and every other setting were gone. ZenNotes now reads the file the way OpenCode does and changes only its ownmcp.zennotesentry, keeping your comments and formatting. A file it still cannot read is left untouched, and Settings shows the line and column of the problem. When you have only anopencode.jsonc, that file is edited instead of a second config being started beside it. - A failed Connect to Remote Vault leaves the address field typeable on Windows (#1106, reported by @medzsikmisi). When a server turned the connection down, the error came in a native Windows message box, and after OK no text field took typing until ZenNotes restarted. The error now shows in the app's own dialog, without Electron's "Error invoking remote method" prefix, and Quick Connect remembers the address you last tried for the rest of the session.
zn and the server
- The desktop app bundles zn 0.18.2, whose terminal app autosave and CLI and MCP edits use the same server check, so they never overwrite a note another device just changed.
- Server 2.91.0 answers note reads and writes with the note's
sha256and takes an optionalbaseSha256on writes, refusing with 409 when the note changed. It also fixes the file watcher after a vault switch, which sorted changes into the default folder names instead of the vault's own, and a hang that switch could cause on Windows (ZenNotes/znserver#85).
For contributors
- The offline copy for remote vaults is designed, not built:
docs/ideas/remote-offline-copy.mddescribes a local copy kept in step with the server by the Cloud sync engine, with the decisions taken so far. Conditional writes are its phase 1. supportsConditionalNoteWritesis the server capability the desktop retry, zn and the MCP server look for. Against an older server the desktop falls back to reading the note just before it writes, which narrows the window but cannot close it.jsonc-parseris bundled into the desktop main process (not externalized), per the packaging rule for pure-ESM main dependencies.
Verification
How to test locally:
- Run a ZenNotes server and connect to it with Connect to Remote Vault (command palette).
- Open a note, stop the server, and type a line. Before: the note kept the unsaved dot and nothing else happened. After: the header says Not saved and a message stays up.
- Start the server again. Within a few seconds the note saves and the message goes away.
- Stop the server, type another line, then try to quit. Before: ZenNotes quit and the edit was gone. After: it asks first.
- For a conflict: stop the server, edit a note, change the same note on the server from another device or with
zn, then start the server. Your version is saved, and the server's is kept beside it as Note (server copy). - For OpenCode: put a
// commentand a provider in~/.config/opencode/opencode.json, then Settings, MCP, Install for OpenCode. Before: the file held only the ZenNotes entry. After: your comment and provider are still there. - On Windows: Connect to Remote Vault to a server that refuses you (no token), click OK on the error, and type in the address field. Before: nothing typed. After: it types, and the address you tried is filled in.
Distribution channels
- GitHub: this release, latest, with all five update feeds. Every file they name was checked, and the app in both macOS DMGs is Notarized Developer ID and stapled.
- AUR:
zennotes-bin 2.91.0-1, pinned to the Linux tarball's SHA-2561d09d88b…31d6e46d. - Homebrew: the
zennotescask in ZenNotes/homebrew-tap (979d1c7), and theznformula on 0.18.2 (d7d7449). - Nix:
packaging/nix/release-data.json(a602e951), built onmain(run 45252959098). - nixpkgs: NixOS/nixpkgs#590905, now
zennotes-desktop: 2.88.0 -> 2.91.0, waiting for nixpkgs review. - Self-hosted server: 2.91.0, latest, with the 2.91.0 web client. Docker
adibhanna/zennotes2.91.0,2.91andlatestpoint atsha256:81f2df1b…1fc978. - zn: 0.18.2, released first and bundled here.
- Phones: unchanged. Nothing in this release changes them; iPhone 1.43.0 and Android 1.1.62 are current.
- Website: the release page, zn 0.18.2 and server 2.91.0 on their tabs, and the docs for Not saved and the bundled CLI.
Release validation
- On
82360d73: typecheck, every test suite uncached (shared-domain 2720, portable-vault 398, app-core 4969, quicklook 18, web 76, desktop 1977),build:prod, the packaged app (signed, launch check: page target, rendered, 2.91.0, bundled zn 0.18.2) and the three smoke suites. No hazards, no audit findings, no long dashes. Every CI job passed on the release pull request and onmainbefore the tag. - The gate found one thing. On its first full run, two note tests failed once: a save-retry timer from an earlier test fired inside a later one. Users could not lose a write that way (the retry goes through the normal save, which respects renames and vault switches), but after a vault switch the old vault's "Couldn't save" message could stay on screen. Each retry now remembers the vault and connection it belongs to, with two new tests, and every check ran again.
- The fixes were driven in the built app: the remote save retry and server copy over CDP against a real server, including a save landing in the middle of a retry; Install for OpenCode with a commented config; and the address field on the shipped Windows build in a Windows VM.
- znserver 2.91.0: Go tests on Linux, macOS and Windows, the MCP contract, Docker and Nix passed; the binaries match
SHA256SUMS, and an isolated run reports 2.91.0 andsupportsConditionalNoteWrites. One MCP contract job failed on a GitHub 403 while cloning zn and passed on a re-run. - The macOS pack hit this Mac's code-signing timestamp failure; it was signed through Apple's timestamp server by its IPv4 address. CI builds are unaffected.
- Not tested before release: the iPhone Cloud UI tests (waived: no phone change), and packaged Windows and Linux builds beyond CI.