Skip to content

A binary file edit that conflicts with upstream can't be recovered through sync #374

Open

Description

@willgosnold

When a binary file with a file edit changes upstream, sync reports a conflict (binary file changed upstream in last-sync.json) and leaves the base copy at the old version. status then says stale <path>: its base differs from upstream at the pin; run sync, but running sync again says Nothing to do and status stays stale. The only way out found is hand-editing the change's line from file to replace.

Main has this loop for a binary file edit on an upstream path. #368 routes binary edits on copies into the same path.

Expected: a documented way to take upstream's bytes or keep ours, for example recording the resolution with record, that leaves status clean.

Found during audit verification of #368.

Activity

  1. willgosnold commented on Oct 26, 2026

    @willgosnold
    OwnerAuthor

    Update from the coordinator: for edited copies, PR #368 creates this state through the normal record flow, where main recorded a replace that kept building. So #368 will not merge until binary edited copies either keep main's behavior or have a working recovery. The upstream-path case this issue describes predates #368 and stays open here.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions