Topics
Recent articles

Developer Tools

How to Test Obsidian Sync When Two Devices Edit the Same Note

Run a controlled Obsidian Sync conflict test on two devices. Verify both offline edits are recoverable and one reviewed note syncs back to both.

Table of Contents9 sections
Pixel art showing a laptop changing the deadline to Tuesday and a phone changing it to Thursday, with both edits feeding one reviewed note.
Preserve the two offline edits before deciding what belongs in the canonical note.

Two devices can show a green sync icon and still disagree with what you meant to write. If you replace a deadline on your laptop while your phone is offline, then replace the same deadline with something else on your phone, there is no correct answer that a text merger can infer. What you can test is whether Obsidian keeps both changes available, makes the disagreement visible, and lets you publish one reviewed note back to both devices.

Quick solution: In an isolated two-device vault, start from the same note, take both devices offline, and replace the same line with different values. Reconnect one device, confirm its upload, then reconnect the other. Inspect the note, any conflict copy, and the activity log. Repeat with the reconnect order reversed.

Note: Sync collision test.md
Base on both devices: Deadline: undecided
Laptop offline edit:  Deadline: Tuesday [LAPTOP-01]
Phone offline edit:   Deadline: Thursday [PHONE-01]
Pass: both values recoverable; reviewed note matches on both devices

Choose a scratch vault, not a scratch note in your main vault

Make two local copies of a disposable vault, for example one on your laptop and one on your phone, and connect them to the same dedicated test remote vault. Use the sync service and device types you actually plan to rely on. Do not connect a test copy to the production remote vault. A folder named Test does not isolate edits from a real vault if it is inside that vault. In particular, do not introduce a second sync engine to make the setup easier. If two services both write to the same folder, you cannot confidently attribute the result to either one.

Use a short Markdown note with a plain name, a stable heading, and a distinctive line above and below the target line. No personal notes, active task lists, plugins that rewrite the test file, or templates that create another file with the same name. Make the first test about two human edits, not two devices plus an automation. One fixed location in the vault makes it easier to search for the canonical note and any neighboring files. Turn off unrelated automation in the scratch environment, not in your working vault.

Record the app version and sync service on each device, then wait for the base note to appear with identical text on both. Open each note and check the line rather than assuming a finished setup means the baseline is present. A test where the phone created its note independently is a same-name creation test, not an edit conflict with a shared starting point. The two cases can have different recovery paths.

Decide what a pass means before you disconnect

Split the outcome into three checks. First, can you recover each edit exactly as entered? Second, can you tell which part of the resulting note still requires a human decision? Third, after the decision is made, do both devices converge on the same text? A result can pass one check and fail another. A note containing both deadlines passes preservation but not meaning. A perfectly formatted note containing only one deadline is not a preservation pass unless you can recover the other edit through the method you intended to test.

For official Obsidian Sync, read Troubleshoot Obsidian Sync before picking the mode. Its Markdown conflict setting can automatically merge changes or write a conflict file, and the setting is per device. Agree on the mode in the test record and configure both devices. Otherwise, reversing the reconnect order may also change the conflict policy, and you will not know which variable accounts for the result. For a third-party plugin, check that plugin’s behavior separately. File names, history, and which copy becomes canonical are not a common standard.

Keep the two offline values in an external test log if you need to compare later. Treat that record as ground truth for the test, not as evidence that sync preserved the change. A token copied manually to your log is useful for detecting loss. It does not make a failed preservation test pass. When comparing finished notes, check the line and surrounding structure, not merely whether the marker appears somewhere in search results.

Make both changes before either device syncs

After the baseline is present, disconnect both devices so neither can exchange changes. Edit the existing deadline line on the laptop, then edit the original deadline line on the phone. Keep both devices disconnected long enough to reopen each note and verify the local write. This step distinguishes “I typed it” from “the file contains it.” Do not rename the note, paste the whole note over the original, or add both markers on one device. Each device should hold one replacement for precisely the same starting line.

Reconnect the laptop only. Wait for activity showing that its change reached the remote service, and check that it did not enter an error state. Reconnect the phone after that point. Leave the note alone while the phone catches up. If you correct the note every time it reopens, your corrections become new edits, and the test stops telling you how the original pair was resolved.

Once both devices settle, inspect the exact file path on both. Write down what is in the original and what is in any adjacent copy. Capture the sync event order and whether either device reported an error. Use the Obsidian Sync activity log in the official service to find relevant entries; a conflict filter can help narrow the trace. A log showing a conflict does not establish that either edit is readable. Likewise, a note with both tokens does not establish that the tokens landed in the right place, especially inside a checkbox, Markdown table, or YAML property.

Read the automatic merge as an editor

Automatic merge is convenient when edits occur in unrelated sections. It may leave duplicate or awkward text when edits overlap. In the test, look at where the original deadline disappeared and where the two replacements landed. Are they visible as two sentences, joined into one unintended value, or split across different parts of the file? Your verification should capture what happened in your actual run rather than assuming the service must produce a particular string.

After checking that both values are recoverable, choose one deadline on a single device and replace the disagreement with a sentence a reader will understand. For example, decide that Thursday is final and move Tuesday into a separate note on alternatives only if that context is worth keeping. Compare the final raw Markdown after syncing the reviewed note to the other device. A polished preview can hide duplicate keys or markup that a downstream plugin sees. The content and the rendered note are both worth checking when the file is used as more than plain prose.

The trade-off is convenience versus review. Automatic merge avoids an inbox full of duplicate files for ordinary edits, but it may not put a visible task in front of you when conflicting text needs a decision. If you depend on exact fields for a workflow, add a second fixture that changes one real property or checkbox in a synthetic note. Keep that separate from the first run so failures in file parsing do not obscure failures in preserving the two inputs.

Work through a conflict copy without promoting it by mistake

In official Obsidian Sync’s conflict-file mode, the documentation says the original keeps the remote version and the conflict copy preserves the changes from the device that detected the conflict. The copy name identifies it as conflicted and includes device and time information. Do not infer the author just from which device happens to display the file; compare the text and the reconnect log. With other tools the original and copy may be assigned differently, so read both even when the file names look self-explanatory.

Review the canonical note and copy together. Save independent copies first if you want a safety net during manual resolution. Then edit the canonical note on one device while the other device remains idle. If the two values are mutually exclusive, make a decision rather than copying both into a field that can contain only one. If both are useful, incorporate each into a clear place. Leave the conflict copy untouched until you have seen the reviewed canonical note on both devices. Keep or archive it according to your own retention rules; deleting it early removes the easiest comparison.

A conflict copy is evidence, not a ready-to-use second note. It may look complete enough to open by mistake later, or may appear in searches next to the canonical note. This is the cost of preferring explicit review. A small routine for reconciling conflicts can be more reliable than ignoring the pile. If you rarely have true overlap, it can be cheaper to keep the visible review step than to audit every plausible-looking merge in busy notes.

Recover a missing edit without replacing newer work

If a token is missing from both the original note and any conflict copy, stop editing. Inspect the preserved test inputs, the device logs, and the available versions. Obsidian Sync version history lets you inspect earlier synced file states before restoring one. The same help page distinguishes that history from the separate local File recovery feature. An edit that was only ever offline may not be in remote history, so check the device where it was made if local recovery was available. Neither history source should be treated as a guaranteed backup of every keystroke.

View and copy the missing fragment when possible instead of immediately restoring the entire file. A whole-note restore replaces the current contents, which can erase edits that were made after the version you wanted. If you do need a full restore in a real vault, preserve the current version first and reconcile from that copy. Restore is its own writing operation; watch what both devices receive after it completes. In a controlled test, write down which recovery path worked so you can tell the difference between conflict handling and recovery after a lost merge.

If the two devices never saw the same file or there is no sign one device uploaded its change, classify it as an inconclusive sync run. Check the selected vault, excluded folders, connection, and errors before drawing conclusions about the merger. For authors building sync tooling, logging Obsidian plugin errors without telemetry explains how to make local diagnostics useful without collecting note text. In a test report, the event type, relative order, and synthetic marker checks are usually enough; never paste real note text into a public issue.

Repeat the test with one variable changed

Use a fresh fixture file with a different pair of markers for each run, or re-establish the original baseline through sync and confirm it on both devices before disconnecting. Reverse only the reconnect order on the second run. This can expose an accidental reliance on the laptop always being the remote writer or on a conflict mode only set on one device. A pass should not depend on which device you happen to reconnect first unless that dependency is an explicit and acceptable limitation of your workflow.

Run a non-overlapping control after the two overlapping checks. Add one sentence under an opening heading on the laptop and another under a closing heading on the phone. Both edits fit the original note without requiring a choice. If that case fails too, suspect the baseline, transport, or a third writer before interpreting it as an unavoidable text conflict. Conversely, if the control passes and same-line edits fail, you know that ordinary sync works but the particular collision needs a different policy or a documented recovery procedure.

Reserve simultaneous reconnection, renames, deletions, and initial same-name creation for separate scenarios. They are worth testing if they match the way you work, but combining them with the first trial makes it harder to reproduce a failure. Record the exact combinations you tested instead of claiming a general no-loss guarantee. Re-run the smallest failing example after changing a setting or upgrading the client. A repeatable six-step test is more useful than a large pile of notes with no agreed expected result.

Keep a small pass and fail checklist

The practical question is not whether a sync icon turns green after a collision. It is whether you can find both edits, make the choice the software cannot make, and show that the vault keeps the result after both devices return online. The test tells you whether to trust automatic merge for ordinary notes, use conflict copies for important ones under your chosen service and device settings, or change how you edit a note when you know another device is still offline.

You Might Also Like

View all articles
How to Publish an Obsidian Community Plugin in 2026
12 min read

How to Publish an Obsidian Community Plugin in 2026

A practical release checklist for getting an Obsidian plugin from a working repository into the Community directory, including manifests, GitHub releases, automated review, and updates.