jdx/mise · info
not connected
Error message
not connected
What it means
Connecting a setup repository requires explicit user confirmation at the 'Connect this setup repository?' prompt. If the user declines (or confirmation is absent), `set_inner` aborts with 'not connected' and no connection is recorded.
Solutions
- Re-run the command and answer yes at the prompt
- Add the `--yes` flag to skip interactive confirmation
- Verify the repository URL before connecting if the decline was intentional
Example fix
// before mise dot origin set <url> // after: non-interactive mise dot origin set <url> --yes
Defensive patterns
Strategy: try-catch
Try / catch
match result {
Err(e) if e.to_string() == "not connected" => eprintln!("connection declined; re-run with --yes to connect non-interactively"),
_ => {}
} Prevention
- Pass --yes for scripted connections
- Answer the prompt deliberately after checking the displayed repository
- Run in an interactive TTY when connecting
When it happens
Trigger: `mise dot origin set` reaches `confirmed(opts.yes, ...)` and returns false — the user answered no, or a non-interactive invocation did not supply `--yes`.
Common situations: User hesitates and answers 'n'; scripted/CI invocation lacking a TTY without the `--yes` flag; wrong repository shown in the prompt prompting a deliberate decline.
Understand the failure class
Background: "--flag is required" and "must specify" CLI errors: how missing-required-flag validation works and how to fix it — this error's family across 20 libraries.
Related errors
- not set up
- a branch name is required
- a repository url is required
- adoption requires confirmation; review the directory and…
- Git diff failed ( )
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/323a2797967a5e54.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/history/sync/origin.rs:192
differing.len()
);
for path in differing.iter().take(10) {
miseprintln!(" differs: {path}");
}
}
miseprintln!(
"All committed versions of explicitly tracked files are eligible for synchronization. Untracking does not erase earlier versions."
);
let config_dir = crate::system::history::tracked::global_config_dir();
if config_dir.join(".git").exists() {
miseprintln!(
"{} is a git checkout: enabling history does not convert or migrate it; applied files appear there as ordinary working-tree changes.",
display_path(&config_dir)
);
}
let mut status = run::read_status(state_dir)?;
if !confirmed(opts.yes, "Connect this setup repository?")? {
bail!("not connected");
}
*accepted = true;
// the mode is recorded only when it differs from what the settings
// say, so `mise settings set history.sync …` keeps working afterwards
let mode =
(opts.mode.as_str() != crate::config::Settings::get().history.sync).then_some(opts.mode);
write_config(&opts.url, &branch, mode)?;
// another repository or branch starts from a clean slate: the previous
// one's per-path state, pending changes, and conflicts would read its
// absence of a file as a deletion
if connected_before && !same_origin {
reset_sync_state(repo)?;
status = run::SyncStatus::default();
info!(
"history: a different setup repository; the previous one's sync state is discarded (local checkpoints are kept)"
);
}View on GitHub (pinned to 533346cc37)