v1.0.2 - Fix installed detection for commission/restricted models
Bug Fixes
Fix: Commission/restricted models not showing as installed in Browse tab
修復:[COMMISSION] 等受限模型下載後在 Browse 分頁仍顯示未安裝的問題
Root Cause / 根本原因
The CivitAI search API omits files[] data for restricted/commission/early-access models.
CivitAI 搜尋 API 對受限存取的模型(如 [COMMISSION]、Early Access)不返回 files[] 文件資訊。
The old installed check relied only on SHA256 hash and filename — both sourced from files[].
舊版的安裝判斷只靠 SHA256 哈希值與文件名比對,兩者都來自 files[]。
When files[] is empty, both checks always failed, making downloaded models appear as not installed.
當 files[] 為空時,兩種判斷都會失敗,導致已下載的模型仍顯示未安裝。
Fix / 修復方式
scan_installed_models() now also collects model_id from each model's .json metadata file saved at download time.
scan_installed_models() 現在額外從下載時保存的 .json 元數據文件中收集 model_id。
Installed check now first matches by model_id before falling back to SHA256/filename.
安裝判斷現在優先以 model_id 比對,再回退到 SHA256 / 文件名比對。
Any model whose .json contains a valid model_id will be correctly detected as installed.
任何 .json 包含有效 model_id 的模型都能被正確識別為已安裝。