jdx/mise · error

repository application paused: reconcile repository…

Error message

repository application paused: reconcile repository conflicts first: {}

What it means

The history sync's incoming_repository_tree refuses to build the repository tree while dotfiles tracked in the repository conflict with the live directory. The unresolved paths are listed in the message so the user can reconcile them manually. Sync is deliberately paused instead of silently overwriting conflicting content.

Solutions

  1. Reconcile each path listed after the colon: restore, remove, or re-track it so it becomes eligible.
  2. Run the appropriate history re-track/repair command for the conflicting paths so `eligible()` accepts them.
  3. If the path should no longer be managed, remove it from the tracked set/manifest and let sync rebuild the tree.

Example fix

// before: file tracked but moved outside the capture root
// after: re-track it at its new location so it is eligible
mise history track ~/new-location/settings.json
Defensive patterns

Strategy: validation

Validate before calling

// check for unresolved conflicts before syncing
let unresolved: Vec<_> = paths.into_iter().filter(|p| p != manifest::PATH && !eligible(&roots, tracked, p)).collect();
if !unresolved.is_empty() { eprintln!("resolve first: {}", unresolved.join(", ")); return; }
// proceed with sync

Prevention

When it happens

Trigger: Running the history sync flow (run -> prepare -> incoming_repository_tree) when the computed `unresolved` list — paths that are neither the manifest nor eligible under the capture roots/tracked set — is non-empty.

Common situations: A file moved or renamed outside mise so it is tracked in history but no longer matches an eligible capture root; manual edits creating conflicts between committed dotfiles and on-disk state; a partially completed migration.

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/6fa6ad2b2ba45632. Report an issue: GitHub.

Appendix: source

Thrown at src/system/history/sync/run.rs:1041

        return Ok(None);
    };
    if heads.base.as_ref() == Some(remote) {
        return Ok(None);
    }
    let (merged, conflicts) = repo.merge_tree(local, remote)?;
    let tree = tracked.manifest.write(repo, &merged)?;
    let roots = Roots::current();
    if repo.output_tree_of(local)? == tree && conflicts.is_empty() {
        return Ok(None);
    }
    let unresolved: Vec<_> = conflicts
        .into_iter()
        .filter(|path| {
            path != crate::system::history::manifest::PATH && !eligible(&roots, tracked, path)
        })
        .collect();
    if !unresolved.is_empty() {
        bail!(
            "repository application paused: reconcile repository conflicts first: {}",
            unresolved.join(", ")
        );
    }
    Ok(Some(tree))
}

/// A bootstrap finished: the declarations that arrived through sync are
/// applied now, so `status` stops asking for one.
pub(crate) fn bootstrap_completed() {
    let state_dir: &Path = &crate::dirs::STATE;
    let status = match read_status(state_dir) {
        Ok(status) => status,
        Err(err) => {
            warn!("history: could not record that the bootstrap ran: {err:#}");
            return;
        }
    };

View on GitHub (pinned to 533346cc37)