jdx/mise · error

operation still needs attention; its pending record was…

Error message

operation {} still needs attention; its pending record was preserved

What it means

This error is thrown by `mise dot recover` after recovering a selected checkpoint when a pending record for the same operation's checkpoint UUID still exists in the state directory. Recovering the operation did not fully resolve it — the pending record must still be handled, so recovery is aborted with the message that the operation remains unresolved.

Solutions

  1. Inspect the pending record with `mise dot status` or the state directory listing to see why it is still pending
  2. Resolve or clear the pending operation before recovering (e.g. complete or discard the pending sync/capture)
  3. Re-run `mise dot recover` after the pending record is gone

Example fix

// before
mise dot recover <uuid>  // fails: pending record for <uuid> still exists
// after
mise dot status            # inspect pending operations
mise dot sync              # resolve the pending operation
mise dot recover <uuid>
Defensive patterns

Strategy: try-catch

Validate before calling

# check whether the checkpoint still has a pending record before recovering
mise dot status --json | jq '.pending[] | select(.checkpoint.uuid == "<uuid>")'

Try / catch

if ! mise dot recover "$uuid"; then
  echo "operation $uuid still pending; resolve it with mise dot status/sync first"
  exit 1
fi

Prevention

When it happens

Trigger: Running `mise dot recover` and selecting an operation whose checkpoint UUID still matches an entry returned by `store::list_pending_in(store.state_dir())` after `scope::recover_operation` completes.

Common situations: A pending operation record was left behind by an interrupted capture/sync and the recovery path does not remove it; recovering an operation that is still queued or half-applied in the history store.

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/31679f05df8c8a9f. Report an issue: GitHub.

Appendix: source

Thrown at src/cli/dotfiles/recover.rs:95

            bail!("select one operation by its identifier before accepting current files");
        }
        if self.keep_current
            && !self.yes
            && !crate::ui::prompt::confirm(
                "Keep these live files and discard this operation's temporary recovery copies?",
            )?
            .is_yes()
        {
            info!("dotfiles: recovery copies preserved");
            return Ok(());
        }
        for (_, record) in selected {
            scope::recover_operation(&store, tracked, &record.checkpoint.uuid, self.keep_current)?;
            if store::list_pending_in(store.state_dir())?
                .iter()
                .any(|(_, pending)| pending.checkpoint.uuid == record.checkpoint.uuid)
            {
                bail!(
                    "operation {} still needs attention; its pending record was preserved",
                    record.checkpoint.uuid
                );
            }
            info!("dotfiles: recovered operation {}", record.checkpoint.uuid);
        }
        Ok(())
    }
}

fn matches_operation(selector: &str, id: u64, uuid: &str) -> bool {
    selector.parse::<u64>().ok() == Some(id) || uuid.starts_with(selector)
}

#[cfg(test)]
mod tests {
    use super::matches_operation;

View on GitHub (pinned to 533346cc37)