jdx/mise · error
nothing can be applied until the held paths are decided
Error message
nothing can be applied until the held paths are decided
What it means
A non-automatic `mise dot apply` found paths held out of the plan (undecided conflicts or held applications). Since applying a partial set would be misleading, the command aborts with this message instead of applying the remaining, non-held changes.
Solutions
- Resolve the held paths first: run `mise dot status`, fix each held path (take-remote/keep-local or `mise dot save`).
- Re-run `mise dot pull` so the plan is refreshed, then `mise dot apply`.
- For background/automation contexts use the automatic mode, which records held counts instead of erroring.
Example fix
before: mise dot apply (nothing can be applied until the held paths are decided) | after: mise dot status && mise dot pull --take-remote-all && mise dot apply
Defensive patterns
Strategy: validation
Validate before calling
mise dot status # ensure held count is 0 before running `mise dot apply`
Prevention
- Resolve all conflicts/held paths from the last pull before applying.
- Chain operations: pull (with resolutions) then apply in one flow.
- Avoid `mise dot apply` while any path is marked held in status.
When it happens
Trigger: `mise dot apply` (interactive, not --automatic) where all incoming changes are blocked because `held` is non-empty, leaving an empty ready set — checked immediately before the bail.
Common situations: Running `mise dot apply` while conflicts from a prior pull are still unresolved; applying after a pull that reported held paths.
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
- cannot apply
- cannot synchronize
- changed before application; nothing was written
- changed during setup adoption; retry pull
- changed in the complete repository merge; reconcile again
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/55dd861feecdd7f9.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/history/sync/apply.rs:544
]);
}
if !req.automatic {
table.print()?;
}
if req.dry_run {
if !req.plan_only {
miseprintln!("history: dry run; nothing was changed");
}
return Ok(ApplyOutcome::default());
}
if ready.is_empty() && !((fresh_adoption || inventory_tree.is_some()) && held.is_empty()) {
if req.automatic {
return Ok(ApplyOutcome {
held: held.len(),
..Default::default()
});
}
bail!("nothing can be applied until the held paths are decided");
}
if !req.automatic
&& !super::origin::confirmed(req.yes, "history: apply these incoming changes?")?
{
info!("history: skipped");
return Ok(ApplyOutcome::default());
}
// the transaction
let reload = crate::system::history::config::reload_commands()?;
let scope = if let Some(scope) = operation_scope.take() {
scope
} else if req.automatic {
OperationScope::begin_automatic_apply().await?
} else {
OperationScope::begin_kind(OperationKind::Apply, "dotfiles pull", false).await?
};
scope.with_operation(|op| {View on GitHub (pinned to 533346cc37)