jdx/mise · error
history is disabled (history.enabled = false); nothing can…
Error message
history is disabled (history.enabled = false); nothing can be restored
What it means
Restoring (rollback/undo) needs the history store, which is closed when the `history.enabled` setting is false. Both entry points call `ensure_enabled()` first and refuse to run so history state cannot be silently out of sync.
Solutions
- Re-enable history: `mise settings set history.enabled true` (or remove the disabling line from config)
- After enabling, create a fresh checkpoint (`mise dot checkpoint`) since no prior state was recorded
- If you must restore with history disabled, restore files manually from git/backup instead of via `mise dot undo`
Example fix
// before # settings.toml [history] enabled = false // after [history] enabled = true
Defensive patterns
Strategy: validation
Validate before calling
const enabled = await mise.settings.get('history.enabled');
if (!enabled) throw new Error('enable history.enabled before rollback/undo'); Try / catch
try {
await mise.dot.rollback(req);
} catch (e) {
if (/history is disabled/.test(e.message)) {
await mise.settings.set('history.enabled', true);
}
} Prevention
- Check `mise settings get history.enabled` before relying on undo/rollback
- Avoid disabling history on machines you expect to restore from
- Document the history.enabled requirement in team config templates
When it happens
Trigger: Running `mise dot rollback` or `mise dot undo` while `history.enabled = false` in mise settings (set in settings.toml, config, or via `MISE_HISTORY_ENABLED=false`).
Common situations: User (or a config template) disabled history to save disk/speed, then later tries to restore files; corporate config disables history globally; stale settings from a shared dotfiles template.
Related errors
- an implied source entry key must be relative
- an implied source entry key must not be empty
- an implied source entry key must not contain '..'
- conflicting dotfile declarations for
- conflicting pypi and pipx settings in the same file
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/5febc4863bb66d66.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/history/replay.rs:359
dry_run: req.dry_run,
yes: req.yes,
// the protective checkpoint is authoritative: whatever the
// operation replaced, including a type change it forced, is
// restored exactly
force: true,
},
&store,
&tracked,
&entries,
live,
)
.await
}
/// Restoring needs the store, which `history.enabled = false` closes.
fn ensure_enabled() -> Result<()> {
if !crate::config::Settings::get().history.enabled {
bail!("history is disabled (history.enabled = false); nothing can be restored");
}
Ok(())
}
struct Execution {
kind: OperationKind,
command: String,
targets: Vec<Target>,
message: String,
to: Option<String>,
sources: Vec<OperationSource>,
undoes: Option<String>,
/// Directories to recreate after the plan is applied (an empty directory
/// an operation replaced leaves no trace in a snapshot).
restore_dirs: BTreeSet<PathBuf>,
restore_modes: BTreeMap<String, u32>,
dry_run: bool,
yes: bool,View on GitHub (pinned to 533346cc37)