Skip to content
StaticScope
Overview
Get StaticScope

Conflicts and review

The three-way merge rules, the four kinds of conflict, what the review screen shows and what has to be resolved before anything pushes.

Sync Updated 21 November 2026 7 min read

Most syncs need no decisions. You press the button, changes merge, the toast counts them. This page is about the ones that stop and ask.

When both sides changed the same field, Sync does not pick a winner. It queues the item, blocks the push and shows you both versions. The same happens when one side deleted something the other edited, when the same UUID was added twice with different content, and when both sides changed the same media record.

The three-way rules

Every item has three versions: the base (the last version both sides agreed on), ours (this site) and theirs (the repository). The engine compares them per item, then per field.

ConditionResult
Ours equals theirsKeep the value. If both are absent, drop the item.
Ours equals baseOnly the repository changed. Take theirs, or delete if theirs is absent.
Theirs equals baseOnly this site changed. Keep ours, or delete if ours is absent.
Anything elsePer-field merge.

If every field merges cleanly and the item is not an add or a delete, the merged document is kept silently. No card, no interruption. This is the common case, and it is why a busy sync usually reports pulled and pushed counts rather than a queue.

Per-field merge and the 400-line limit

  • If ours and theirs are equal for a field, skip it.
  • If ours equals base, take theirs.
  • If theirs equals base, keep ours.
  • If the field is content and all three values are strings, try a line-level text merge.
  • Author fields compare by login. A different display name is not a conflict.
  • Everything else that both sides changed becomes a field conflict.

The text merge is line-based, using a longest-common-subsequence diff. Different paragraphs or lines merge silently. Overlapping lines, or two insertions at the same place, conflict. Identical edits on both sides count as agreement, which is worth remembering when two people fix the same typo.

Above 400 lines on either side the text merge refuses and the content becomes a whole-content conflict. That is a guard against memory use and against a review screen nobody could reasonably read. Long pages and very long posts will therefore ask you to choose wholesale rather than merge line by line.

The four kinds of conflict

KindWhen it happensBadge
fieldBoth sides changed the same field or fields differently.Conflict
addThe same UUID was added on both sides with different content.Added twice
deleteOne side deleted the item, the other changed it.Deleted
attachmentBoth sides changed the same attachment record.Media

The kind decides the badge, the summary and which choices the review screen offers. A delete gets two buttons, not a diff. An attachment gets a file picker. Everything else gets the text and field controls.

The summary line

Every card carries one generated sentence. It names the other person from the attribution on their version, so the queue reads like a handover rather than a list of IDs.

  • <Name> deleted it, but you changed it.
  • <Name> changed it, but you deleted it.
  • <Name> added it too. or Added on both sites.
  • <Name> added it too, with something different. or Added on both sites, with different content.
  • <Name> and you changed the title. or You both changed the title.
  • <Name> and you changed the title and the content.
  • File notes: You both changed the file., <Name> changed the file., The file changed on another site., You changed the file.
  • Both sides changed different parts; they fit together. is a fallback that is not normally queued.

Field labels in those sentences are plain: content, title, slug, excerpt, status, date, author, categories and tags, parent page, order, featured image, images. Attachments use the file, the file name, the name, the alternative text, the caption, the description, the width, the height and the file type.

The review screen

The Sync screen leads with a status band. With conflicts it reads “N change needs your review” or “N changes need your review”, with the subtitle “Nothing is pushed until you choose. Your site keeps your version meanwhile.” The Needs your review cards follow the Worth a conversation cards.

Each card shows the title or Untitled, a badge, the summary and a Review button. Review opens a section with the title, the badge and “Changed on another site. summary”.

Diffs and tabs

For content conflicts and Added twice cards you get three tabs: Theirs, Yours and Preview merge. Theirs and Yours use WordPress’s native side-by-side diff, titled Before and Theirs, or Before and Yours. Link tokens are resolved to real URLs so you are reading the page, not the storage format. Preview merge renders the best-effort merge. If there is no textual difference, it says No changes here.

The merge editor

Edit merge opens a Merged version textarea prefilled with the merge and a Save merge button. Edit the text as you would any post, then save. The result is canonicalised back to tokens before it is stored, so the next site still gets its own URLs. The screen’s own note is: “Edit merge opens the text if you want to decide sentence by sentence.”

Field and file choices

When content and other fields are both in conflict, a Content fieldset offers Keep mine, Take theirs and Use the merge. The merge option is described as “Both, where they don’t overlap. Preview it above.”

A file identity change gets a File fieldset with both pictures side by side (or document icons), the file name, dimensions and size, and Keep mine or Take theirs. The text is “The file is different on each site. Choose which one to keep.” The image choice is separate from the alt text, title, caption and description, so you can keep their picture and your wording.

Other fields appear in a table with Keep yours and Take theirs, the value on each side and Before: <value>. Arrays show names, empty values show Empty and differing files show A different file. When there are per-field or file choices, the action is Save choices; otherwise it is Keep mine or Take theirs. All changes returns to the queue, and Escape closes the review.

Deletions

A delete conflict does not show a diff. It warns: “It was deleted on another site. Nothing disappears here until you decide.” The two buttons are Keep it here and Delete here too.

Deleting here means moving the local post to trash, not erasing it. A remote delete always becomes local trash. A local trash removes the document from the export, and the next successful push removes it from the repository. If you restore the post from trash, it regains its UUID and can be re-added.

Attachments are never deleted by a sync. An attachment delete conflict is dropped rather than queued, and the record union always keeps the base and local records. Cleaning up media is a manual job, or a job for something other than Sync.

What the API accepts

The resolve endpoint takes a choice of ours, theirs, merge or delete, an optional content string for an edited merge, and a fields object mapping a field to ours, theirs or merge. A blob field choice moves the whole file identity: blob, path, size, width, height and MIME type.

ButtonChoice sent
Keep mineours
Take theirstheirs
Use the merge / Save choicesmerge plus per-field values
Save mergemerge plus content plus per-field values
Keep it hereours
Delete here toodelete

The server rejects an unknown choice with That isn’t a choice this screen offers. It does not check that the choice fits the kind. A hand-crafted request could send delete for a normal field conflict. The UI will not do that; if you are calling the API directly, that check is yours.

Resolving removes the card, applies your choice locally, imports the chosen file if it was a media conflict, advances that item’s base to the repository version and immediately syncs. If other conflicts remain, nothing pushes. If that was the last one, your resolution is pushed as an ordinary local change.

What blocks a push

  • Any conflict in the queue.
  • The site lock being held by another sync.
  • Repository read or write failures.
  • A push race that fails again after the single retry.
  • Invalid record IDs: A record has an ID that can’t be stored.
  • Document import failures.
  • Branch protection or host size limits.
  • The build preflight checks, for publishing specifically.

A skipped media file does not block a push. It is reported and left for the next run.

One conflict blocks everything. The gate is site-wide, not per item. Resolve the queue in one sitting, or expect no content to leave the site until you do.

Next