{"record":{"id":"55dd861feecdd7f9","repo":"jdx/mise","slug":"nothing-can-be-applied-until-the-held-paths-are-de","errorCode":null,"errorMessage":"nothing can be applied until the held paths are decided","messagePattern":"nothing can be applied until the held paths are decided","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/history/sync/apply.rs","lineNumber":544,"sourceCode":"        ]);\n    }\n    if !req.automatic {\n        table.print()?;\n    }\n    if req.dry_run {\n        if !req.plan_only {\n            miseprintln!(\"history: dry run; nothing was changed\");\n        }\n        return Ok(ApplyOutcome::default());\n    }\n    if ready.is_empty() && !((fresh_adoption || inventory_tree.is_some()) && held.is_empty()) {\n        if req.automatic {\n            return Ok(ApplyOutcome {\n                held: held.len(),\n                ..Default::default()\n            });\n        }\n        bail!(\"nothing can be applied until the held paths are decided\");\n    }\n    if !req.automatic\n        && !super::origin::confirmed(req.yes, \"history: apply these incoming changes?\")?\n    {\n        info!(\"history: skipped\");\n        return Ok(ApplyOutcome::default());\n    }\n\n    // the transaction\n    let reload = crate::system::history::config::reload_commands()?;\n    let scope = if let Some(scope) = operation_scope.take() {\n        scope\n    } else if req.automatic {\n        OperationScope::begin_automatic_apply().await?\n    } else {\n        OperationScope::begin_kind(OperationKind::Apply, \"dotfiles pull\", false).await?\n    };\n    scope.with_operation(|op| {","sourceCodeStart":526,"sourceCodeEnd":562,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/history/sync/apply.rs#L526-L562","documentation":"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.","triggerScenarios":"`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.","commonSituations":"Running `mise dot apply` while conflicts from a prior pull are still unresolved; applying after a pull that reported held paths.","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."],"exampleFix":"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","handlingStrategy":"validation","validationCode":"mise dot status  # ensure held count is 0 before running `mise dot apply`","typeGuard":null,"tryCatchPattern":null,"preventionTips":["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."],"tags":["sync","apply","dotfiles"],"backgroundTag":"invalid-state-transition","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}