Skip to content

[Improvement] Realtime updates with self-host vault #336

Closed

Description

@wedgen

Issue

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?

Activity

  1. changed the title [-]Realtime Updates from Self-Host Vault[/-] [+]Realtime updates with self-host vault[/+] on Jul 7, 2026
  2. changed the title [-]Realtime updates with self-host vault[/-] [+][Improvement] Realtime updates with self-host vault[/+] on Jul 7, 2026
  3. rdcstarr commented on Jul 29, 2026

    @rdcstarr

    I’m seeing a related failure mode in ZenNotes 2.19.0 on macOS with a self-hosted remote workspace.

    Steps to reproduce

    1. Connect the macOS client to a self-hosted remote workspace.
    2. Interrupt the remote WebSocket connection, for example by restarting the server or disrupting the network.
    3. Modify a file externally on Linux.
    4. Observe that the change is no longer reflected live in the macOS client.
    5. Click Refresh and observe that the change is fetched correctly.
    6. 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.

  4. adibhanna commented on Aug 25, 2026

    @adibhanna
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions