jdx/mise · error

sync paused: resolve conflicts across the complete…

Error message

sync paused: resolve conflicts across the complete repository before publication: {}

What it means

Before publishing a synced history tree, mise checks that every conflict detected between local and incoming state has been explicitly accepted. Any still-unresolved conflict path aborts publication, listing the offending paths, because pushing would silently drop one side of the conflict.

Solutions

  1. Resolve or accept each listed conflict path (e.g. via the interactive conflict prompt or by accepting current/incoming for each path).
  2. Run `mise dot pull` to re-enter conflict resolution and accept the listed paths.
  3. After accepting all conflicts, re-run `mise dot sync` to publish.

Example fix

// before: publish with unresolved conflicts
mise dot sync // fails listing conflicts
// after: accept each conflict, then publish
mise dot pull        // resolve/accept each listed path
mise dot sync        // succeeds once accepted contains all conflicts
Defensive patterns

Strategy: validation

Validate before calling

// check for unresolved conflicts before syncing
let unresolved: Vec<_> = conflicts.iter().filter(|p| !accepted.contains(*p)).collect();
if !unresolved.is_empty() {
    eprintln!("resolve first: {}", unresolved.join(", "));
    return;
}

Try / catch

match sync() {
    Err(e) if e.to_string().starts_with("sync paused: resolve conflicts") => prompt_conflict_resolution(),
    other => other,
}

Prevention

When it happens

Trigger: Running `mise dot sync` (or publish) while `conflicts` contains paths absent from the `accepted` set — i.e. the user has not decided conflicting files after a pull or reconcile produced conflicts.

Common situations: A `mise dot pull` surfaced conflicting dotfiles; the user ran sync again without resolving/accepting them; an automated sync job runs while conflicts from a prior pull remain pending.

Understand the failure class

Background: "Invalid state transition" errors: "status must be X, actually Y", "already rejected/charging/uninstalled", "cannot ... while running" — what they mean when a library rejects your call — this error's family across 31 libraries.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/ced31d714113867d. Report an issue: GitHub.

Appendix: source

Thrown at src/system/history/sync/publish.rs:56

        // line merge can conflict on independent additions or combine policy
        // changes into invalid metadata. Validate its structured merge first.
        if let Some(base) = &heads.base {
            use crate::system::history::manifest::Manifest;
            if let (Some(base), Some(ours), Some(theirs)) = (
                Manifest::read(repo, base)?,
                Manifest::read(repo, local)?,
                Manifest::read(repo, remote)?,
            ) {
                merged = Manifest::merge(&base, &ours, &theirs)?.write(repo, &merged)?;
                conflicts.retain(|path| path != crate::system::history::manifest::PATH);
            }
        }
        let unresolved: Vec<_> = conflicts
            .iter()
            .filter(|path| !accepted.contains(*path))
            .collect();
        if !unresolved.is_empty() {
            bail!(
                "sync paused: resolve conflicts across the complete repository before publication: {}",
                unresolved
                    .into_iter()
                    .map(String::as_str)
                    .collect::<Vec<_>>()
                    .join(", ")
            );
        }
        // Accepted choices were validated against saved, live, and remote
        // versions. Carry their already-encrypted saved objects, not a new
        // plaintext publication representation.
        let overlays = conflicts
            .into_iter()
            .map(|path| {
                Ok(crate::system::history::shadow::Overlay {
                    object: repo.object_at(local, &path)?,
                    path,
                })

View on GitHub (pinned to 533346cc37)