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++

Settings file check: the app's own ui_* notes are not unknown keys (found by checking the configs the app wrote on r9700)

Niko12216ad1ad69ab65
diff --git a/apps/host/server/run-config-check.mjs b/apps/host/server/run-config-check.mjs
index 12a02ed0d..fc8956a89 100644
--- a/apps/host/server/run-config-check.mjs
+++ b/apps/host/server/run-config-check.mjs
@@ -81,7 +81,7 @@ export function checkRunConfig(text, { known = KNOWN_KEYS } = {}) {
}
const fields = new Map(NATIVE_FIELDS.map(f => [f.id, f]));
for (const [key, value] of Object.entries(config)) {
- if (!known.has(key)) {
+ if (!known.has(key) && !key.startsWith('ui_')) { // ui_* are the app's own notes in the file (resource profile, picture device)
const near = nearestKey(key, known);
add('warning', near ? 'unknown-key-near' : 'unknown-key', key, { key, near: near ?? '' }, `"${key}" is not a setting Strata reads, so it is ignored.${near ? ` Did you mean "${near}"?` : ''}`);
continue;
diff --git a/apps/host/tests/run-config-check.test.mjs b/apps/host/tests/run-config-check.test.mjs
index fe2a8e9ce..5cd00c808 100644
--- a/apps/host/tests/run-config-check.test.mjs
+++ b/apps/host/tests/run-config-check.test.mjs
@@ -118,3 +118,7 @@ test('every issue sentence exists in all eight languages and keeps its slots', a
}
setTranslationLanguage('en');
});
+
+test('the notes the app itself writes into the file (ui_resource_baseline, ui_vision_device, ...) are not reported', () => {
+ assert.deepEqual(checkRunConfig('{"ui_resource_baseline": {"parallel": 2}, "ui_vision_device": "cpu", "ui_resource_profile": "work"}'), { ok: true, issues: [] });
+});