Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Use your own GGUF: an unsupported or incomplete GGUF folder is shown in words, not as a generic failure

Niko1221fa25086125bc
diff --git a/apps/host/server/control-runtime.mjs b/apps/host/server/control-runtime.mjs
index 017c93f32..4f7fc610c 100644
--- a/apps/host/server/control-runtime.mjs
+++ b/apps/host/server/control-runtime.mjs
@@ -199,6 +199,9 @@ export function createControl({ control = findControl(), env = process.env, run
async importPlan(path) {
const result = await call(['models', 'import', path, '--plan', '--output', 'json'], { timeoutMs: 120_000 });
if (result.json && result.code === 0) return result.json.plan ?? result.json;
+ // A set that cannot be used is still a checked set: Control answers (exit 5, ok:false) with the plan and the reasons, and the page says them in
+ // words ("Strata can't run these files yet"). Only a check that could not run at all is a failure.
+ if (result.json?.plan && Array.isArray(result.json.plan.issues)) return result.json.plan;
throw failure(result, 'The files could not be checked.');
},
async saveProfile(name, configPath) {
diff --git a/apps/host/tests/packaged-control.test.mjs b/apps/host/tests/packaged-control.test.mjs
index 936343d23..fdd720a7b 100644
--- a/apps/host/tests/packaged-control.test.mjs
+++ b/apps/host/tests/packaged-control.test.mjs
@@ -494,3 +494,11 @@ test('packaged: a profile an elevated run locked (PermissionError) is repaired o
assert.match(job.error, /PermissionError/);
} finally { await g.native.close(); g.cleanup(); }
});
+
+test('a GGUF folder Control refuses (exit 5, ok:false) still comes back as a checked plan with its reasons, so the page can say it in words', async () => {
+ const plan = { file_set_status: 'invalid_or_incomplete', candidate_selection: null, issues: ['x.gguf: GGUF tensor or metadata count exceeds the inspection limit', 'unrecognized_or_unsupported_model_variant'] };
+ const control = createControl({ control: { dir: '/c', python: '/p', cli: '/c/strata.py', bundle: { version: '9' } }, run: async () => ({ code: 5, json: { ok: false, plan }, text: '', stderr: '' }) });
+ assert.deepEqual(await control.importPlan('/some/folder'), plan);
+ const broken = createControl({ control: { dir: '/c', python: '/p', cli: '/c/strata.py', bundle: { version: '9' } }, run: async () => ({ code: 1, json: null, text: '', stderr: 'boom' }) });
+ await assert.rejects(() => broken.importPlan('/some/folder'), /boom/);
+});