- tools/strata_mcp.py: disk usage from the files a model really uses (every part of a multi-part GGUF, the picture reader, packs, draft layer), a file named by several flags or shared by several models counted once; Delete's plan stays separate (removable_gb) - Settings > Storage: one list and one total (optimized models and other local models), shared files as a line of their own - Check folder on the same folder no longer unloads the loaded models (O01); an actual change still asks first - Settings shows the app version (0.2.0-beta) as Strata with the engine beside it; Control's 0.1.45 is no longer shown as Strata and no longer goes into the update check as the app version
14 lines
809 B
JavaScript
14 lines
809 B
JavaScript
/**
|
|
* What changing (or only checking) the model folder does to the models that are loaded.
|
|
*
|
|
* "Check folder" reads the SAME folder again, so nothing that is loaded may be touched: it used to unload every optimized model
|
|
* and the status went to "No model loaded" (QA 2026-10-18, O01). Only an actual change of folder unloads them, and only when
|
|
* the person agreed (the screen says so first and offers "Unload and change directory").
|
|
*/
|
|
export function nativeUnloadPlan({ changed, unload, instances }) {
|
|
const running = Array.isArray(instances) ? instances : [];
|
|
if (!running.length || !changed) return { refuse: null, ids: [] };
|
|
if (unload !== true) return { refuse: 'Unload native models before changing the model folder.', ids: [] };
|
|
return { refuse: null, ids: running.map(i => i.id) };
|
|
}
|