The /delete-cached guard refused deleting a cached repo whose id is a bare prefix of the loaded one: with Qwen/Qwen-Image-2512 loaded, deleting the separate cached Qwen/Qwen-Image returned 400 "Unload the model before deleting" because loaded_id.startswith(repo_id) matched across the repo boundary. Both are real, independently cached catalog artifacts, so a supported delete was wrongly blocked. Add a /-boundary aware _loaded_id_matches_repo helper (mirroring hub/services/models/deletion.py) and use it at all six guard sites (chat, Images, Video, and their in-flight loading-id loops), so only the loaded repo itself or a file within it blocks deletion. Add a regression test covering the sibling-prefix pair. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_node_prebuilt.py | ||
| install_python_stack.py | ||
| install_sd_cpp_prebuilt.py | ||
| LICENSE.AGPL-3.0 | ||
| node_prebuilt_pins.json | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||