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++
Installed models: an id with a dot (deepseek-v4.1-flash-ist-das-2.00bpw) is listed; the install finished but the app never showed the model
Niko12214499c69681ab
diff --git a/apps/host/server/native-control.mjs b/apps/host/server/native-control.mjsindex 291388e0f..7f98e2b8b 100644--- a/apps/host/server/native-control.mjs+++ b/apps/host/server/native-control.mjs@@ -25,7 +25,7 @@ import { friendlyModelName } from './model-names.mjs';import { parseSaved as parseRoles, mirror as mirrorRoles } from './gpu-roles.mjs';const ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..');-const safeId=value=>typeof value==='string'&&/^[a-z0-9_-]{1,80}$/i.test(value);+const safeId=value=>typeof value==='string'&&/^[a-z0-9](?:[a-z0-9_-]|\.(?!\.)){0,79}$/i.test(value); /* a dot inside the name: deepseek-v4.1-flash-ist-das-2.00bpw */const busy=requests=>requests.some(r=>['queued','generating'].includes(r.state));function readJson(path,fallback={}){try{return JSON.parse(readFileSync(path,'utf8').replace(/^\uFEFF/,''));}catch{return fallback;}}diff --git a/strata_control/models.py b/strata_control/models.pyindex 263c23184..9cf4260c6 100644--- a/strata_control/models.py+++ b/strata_control/models.py@@ -28,7 +28,8 @@ from strata_control.profiles import ProfileErrorROOT = Path(__file__).resolve().parents[1]-MODEL_ID = re.compile(r"[a-z0-9][a-z0-9_-]{0,127}\Z")+# a dot is allowed inside the name (DeepSeek-V4.1-Flash: "deepseek-v4.1-flash-ist-das-2.00bpw"), never two in a row and never first+MODEL_ID = re.compile(r"[a-z0-9](?:[a-z0-9_-]|\.(?!\.)){0,127}\Z")MAX_CONFIG_BYTES = 1024 * 1024MAX_CONFIGS = 128MAX_IMPORT_SHARDS = 128diff --git a/tests/terminal/test_model_id_dot.py b/tests/terminal/test_model_id_dot.pynew file mode 100644index 000000000..f196e1f92--- /dev/null+++ b/tests/terminal/test_model_id_dot.py@@ -0,0 +1,28 @@+"""DeepSeek-V4.1-Flash's model id has dots ("deepseek-v4.1-flash-ist-das-2.00bpw"). The app lists installed models through Control, which+used to drop any id with a dot: the install finished and the model never appeared."""+import json+import tempfile+import unittest+from pathlib import Path++from strata_control import models+++class DotInModelId(unittest.TestCase):+ def test_ids_with_a_dot_are_accepted_and_odd_ones_are_not(self):+ for good in ("deepseek-v4.1-flash-ist-das-2.00bpw", "q2_0", "qwen36-ud-q4_k_xl"):+ self.assertTrue(models.MODEL_ID.fullmatch(good), good)+ for bad in ("a..b", ".a", "../x", "a/b", "A"):+ self.assertFalse(models.MODEL_ID.fullmatch(bad), bad)++ def test_a_run_config_with_a_dotted_name_is_listed(self):+ with tempfile.TemporaryDirectory() as tmp:+ folder = Path(tmp)+ (folder / "strata-deepseek-v4.1-flash-ist-das-2.00bpw.json").write_text(json.dumps(+ {"exe": "/x/strata-dsv41", "tokenizer": str(folder), "args": ["--max-context", "8192"], "model_name": "deepseek-v4.1-flash"}))+ listed = models.list_installed(str(folder))+ self.assertEqual([m["id"] for m in listed["models"]], ["deepseek-v4.1-flash-ist-das-2.00bpw"])+++if __name__ == "__main__":+ unittest.main()