mirror of
https://github.com/unslothai/unsloth.git
synced 2026-08-24 00:04:14 +00:00
* Studio: propagate required backend version to repair pipeline (#8610) Fix second-launch infinite repair loop when installed backend version is outdated (#8610). When the Desktop App launches with an installed managed venv whose version is older than expected_backend_version() (e.g. 2026.8.4 < 2026.8.15), preflight flags the install as ManagedStale with desktop_backend_version_outdated. On auto-repair, unsloth studio update ran setup.sh/setup.ps1 from the old venv, which skipped python dependency installation because INSTALLED_VER == LATEST_VER on PyPI or PyPI timeout, leaving the venv unchanged. The installer fallback (install.sh/install.ps1) also lacked version floor pins on standard fresh paths, locking the user in a permanent repair error loop. Key changes: - Pass UNSLOTH_DESKTOP_BACKEND_VERSION from Tauri (update.rs & install.rs) to child process environments. - Force Python dependency pass in setup.sh & setup.ps1 when UNSLOTH_DESKTOP_BACKEND_VERSION is set and INSTALLED_VER < UNSLOTH_DESKTOP_BACKEND_VERSION. - Apply UNSLOTH_DESKTOP_BACKEND_VERSION floor constraint when updating core packages in install_python_stack.py. - Ensure standard fresh install paths in install.sh and install.ps1 use "unsloth>=2026.8.15". - Bump MIN_DESKTOP_BACKEND_VERSION in preflight/version.rs to "2026.8.15". - Add shell and Python unit tests for the fast-path escape and desktop backend version constraint. Fixes #8610 * Narrow desktop repair to version propagation * Handle version suffixes in repair fallback --------- Co-authored-by: imagineer99 <samleejackson0@gmail.com> Co-authored-by: Lee Jackson <130007945+Imagineer99@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| test_agent_guides_timeout_classification.sh | ||
| test_apt_distro_prompt.sh | ||
| test_clean_machine_install_name_tool_assert.sh | ||
| test_get_torch_index_url.sh | ||
| test_install_host_defaults.sh | ||
| test_install_pipe_safety.sh | ||
| test_install_python_guard.sh | ||
| test_install_rollback_lifecycle.sh | ||
| test_install_sh_xpu_flavor_probe.sh | ||
| test_install_uv_override_space.sh | ||
| test_linux_deps_gate.sh | ||
| test_llama_build_jobs.sh | ||
| test_llama_degraded_tauri_mode.sh | ||
| test_mac_intel_compat.sh | ||
| test_macos_clt_gate.sh | ||
| test_macos_uv_install_name_tool_guard.sh | ||
| test_macos_venv_python_preference.sh | ||
| test_node_decision.sh | ||
| test_nvcc_meets_llama_minimum.sh | ||
| test_packaged_frontend_skip.sh | ||
| test_previous_torch_pin.sh | ||
| test_redact_install_output.sh | ||
| test_resolve_cuda_archs.sh | ||
| test_rocm_version_source_disagreement.sh | ||
| test_setup_desktop_backend_version_fastpath.sh | ||
| test_setup_http_get.sh | ||
| test_setup_sh_denied_install_tree.sh | ||
| test_setup_webview_cache_clear.sh | ||
| test_setup_xpu_fastpath_escape.sh | ||
| test_setup_xpu_posix_summary.sh | ||
| test_staged_validation_enabled.sh | ||
| test_strixhalo_wsl_reroute.sh | ||
| test_studio_home_node_dir.sh | ||
| test_system_node_readonly.sh | ||
| test_tauri_install_exit_order.sh | ||
| test_tauri_retry_failure_context.sh | ||
| test_torch_constraint.sh | ||
| test_torch_flavor.sh | ||
| test_uninstall_arg_guard.sh | ||
| test_uninstall_prebuilt_artifacts.sh | ||
| test_uninstall_sd_cpp_custom_root.sh | ||
| test_uninstall_shared_icon.sh | ||
| test_uninstall_webview_data.sh | ||
| test_unsloth_torch_override.sh | ||
| test_uv_pinned_release.sh | ||
| test_with_llama_cpp_dir_flag.sh | ||
| test_with_llama_cpp_dir_link_behavior.sh | ||
| test_xpu_bitsandbytes_reachable.sh | ||
| test_xpu_torch_spec_parity.sh | ||