record() and upsert() use partition_point on the path-sorted file list
and reconcile_inventory appends records in order instead of upserting
each one, dropping full rescans from O(n^2) to O(n log n).
mcl named shortcut files with the sanitized instance name, but the
migration looked them up by raw display name and never matched; the
windows lookup keeps the legacy .bat extension.
mirror_dir now copies into a sibling temp directory and renames it
into place only when complete, instead of deleting the destination
up front where a mid-copy failure destroyed the current config.
rename() now runs validate_name on the new name so paths like ../x or
.x cannot move instances out of (or hide them inside) the instances
root; failures surface as an error toast in the TUI.
Model natives/classifiers/extract on Library, download the matching
native classifier jar and unpack it into versions/<id>/natives so
pre-1.13 versions can launch. Cached client jar, libraries and assets
are now checked against their recorded size and sha1 instead of a bare
exists(), and fresh client jar downloads are verified before use.
set_active with an out-of-range index no longer deactivates every
account, re-adding the active account keeps it selected, and the
accounts file (holding refresh tokens) is written via write_atomic.
Update labels disappeared at random and only came back after switching
instances, and mods installed from a modpack never got one.
- display no longer requires the snapshot inventory to match the manifest
exactly; a single changed file wiped every label in the instance even
though each update is keyed by its exact installed version
- a finished scan is applied instead of discarded when the manifest moved
on in the meantime, and the pending queue no longer leaks or replays
stale snapshots over newer ones
- compare versions by publish date and ask the provider for the installed
version when it is missing from the compatible list, which is the normal
case for modpack pinned files; also fixes the modpack update label
- keep known updates for checks that failed so an offline scan no longer
overwrites a good cache
- rescan only when the inventory changed or the snapshot is older than
30 minutes, with one pooled http client per scan instead of one per mod