Skip to content

[bug] A foreign database write to a focused node is silently discarded with no conflict signal #1437

Closed

Description

@mstomar125

Severity: medium · Confidence: medium

When a database-sourced broadcast for an actively-edited node is classified not an own-echo (a genuine foreign write), the skip-while-editing path (shared-node-store.svelte.ts:1409-1440) leaves this.nodes untouched, stashes nothing, and queues no notification — relying on a later OCC to "surface the divergence", which may not fire if the local version was already synced. The user keeps typing over a divergent base with no indication another writer changed the node.

Fix: when skipping a not-own-echo foreign broadcast for a focused node, proactively enqueue a version-mismatch notification (or mark the node so the next save forces a resync).


Found via the 2026-06-18 multi-repo bug-hunt sweep. Confidence/severity from the sweep + spot-verification.

Activity

  1. mstomar125 commented on Jun 24, 2026

    @mstomar125
    ContributorAuthor

    Resolved in #1458. When the skip-while-editing guard skips a NOT-own-echo foreign database broadcast for a focused node, it now raises a deduped version-mismatch conflict notification instead of relying on a later OCC that may never fire — so a foreign write is visible, not silent. Tests: foreign-write notifies, own-echo doesn't, repeated foreign writes dedupe to 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