You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Improvement] Realtime updates with self-host vault #336
When using a remote vault, updates from another client (web or native) are not handled gracefully. If a file is open on both clients and text is entered in that file by both clients, the native client appears to take priority overwriting the web edits. Updates are not visible until the note is closed and re-opened.
Expected Behavior
Updates to remote notes are "refreshed" as the server has an update to provide. Obsidian for example when a file is changed, the client refreshes automatically to reflect the files contents.
Alternatively the client could show an update is available and can be manually retrieved (and merged if conflict exists), auto merge option available in config?
I’m seeing a related failure mode in ZenNotes 2.19.0 on macOS with a self-hosted remote workspace.
Steps to reproduce
Connect the macOS client to a self-hosted remote workspace.
Interrupt the remote WebSocket connection, for example by restarting the server or disrupting the network.
Modify a file externally on Linux.
Observe that the change is no longer reflected live in the macOS client.
Click Refresh and observe that the change is fetched correctly.
Restart or reconnect ZenNotes and observe that live updates work again temporarily.
Findings
The Linux filesystem watcher emits add, change, and unlink events.
A fresh /api/watch subscriber receives those events.
The existing desktop client does not reconnect after the WebSocket closes.
RemoteServerClient.watchVaultChanges() appears to listen only for message events, without handling close or error events or attempting to reconnect.
Expected behavior
The remote watcher should reconnect automatically after the connection is interrupted. Alternatively, the UI should clearly indicate that live updates are disconnected.
Live watch pushes now refresh a clean open note in place, and 2.24.0 added watch-socket reconnect with a full resync, which was the follow-up here. Merging simultaneous edits on a self-hosted vault is a separate design; closing this one.
Activity
[-]Realtime Updates from Self-Host Vault[/-][+]Realtime updates with self-host vault[/+][-]Realtime updates with self-host vault[/-][+][Improvement] Realtime updates with self-host vault[/+]rdcstarr commentedon Jul 29, 2026
I’m seeing a related failure mode in ZenNotes 2.19.0 on macOS with a self-hosted remote workspace.
Steps to reproduce
Findings
add,change, andunlinkevents./api/watchsubscriber receives those events.RemoteServerClient.watchVaultChanges()appears to listen only formessageevents, without handlingcloseorerrorevents or attempting to reconnect.Expected behavior
The remote watcher should reconnect automatically after the connection is interrupted. Alternatively, the UI should clearly indicate that live updates are disconnected.
adibhanna commentedon Aug 25, 2026
Live watch pushes now refresh a clean open note in place, and 2.24.0 added watch-socket reconnect with a full resync, which was the follow-up here. Merging simultaneous edits on a self-hosted vault is a separate design; closing this one.