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

Tests: nobody gets a bigger DeepSeek context than before unless they choose it (8K stays the default in setup, the Terminal and the app; an installed model shows and loads the context it was prepared with)

Niko1221b8946f4c7bd7
diff --git a/apps/host/tests/deepseek-context.test.mjs b/apps/host/tests/deepseek-context.test.mjs
index 598c872f7..6963fb654 100644
--- a/apps/host/tests/deepseek-context.test.mjs
+++ b/apps/host/tests/deepseek-context.test.mjs
@@ -83,6 +83,8 @@ test('the Models screen honours the choice (it no longer forces 8K), offers the
assert.match(screen, /contextChoices\(selectedSize\?\.multi_file \? deepseekContexts\(installed\?\.contextMax\) : native\?\.catalog\?\.contexts \?\? \[8192, 32768, 65536, 131072, 262144\], context\)/);
assert.match(screen, /selectedSize\?\.multi_file && deepseekContextNote\(context\) \? <p className="small muted native-spill-note"><Icon name="info" size=\{16\}\/>\{tr\(deepseekContextNote\(context\)\)\}<\/p> : null/);
assert.match(screen, /if \(selectedSize\.multi_file\)\s+setContext\(8192\)/, 'the default for a DeepSeek version that is not installed stays 8K');
+ assert.match(screen, /if \(installed\.context\)\s+setContext\(installed\.context\)/, 'an installed DeepSeek model shows and loads the context it was prepared with, whatever was kept from another model');
+ assert.match(screen, /installed\?\.ready && context === installed\.context/, 'a load at the prepared context starts from the saved file; only a changed choice runs setup again');
});
test('the note is in the catalog in all eight languages, translated', () => {
diff --git a/tests/terminal/test_dsv41_context.py b/tests/terminal/test_dsv41_context.py
index 2f35e8735..95bc5c865 100644
--- a/tests/terminal/test_dsv41_context.py
+++ b/tests/terminal/test_dsv41_context.py
@@ -117,6 +117,17 @@ class Terminal(unittest.TestCase):
class SetupAndApp(unittest.TestCase):
+ def test_nobody_gets_a_bigger_context_than_before_unless_they_choose_it(self):
+ """The default stays 8K everywhere: setup writes it, the Terminal recommends it, the app starts a new DeepSeek version at it and shows an installed one at
+ the context it was prepared with (so a 0.2.5 / 0.2.6 user's load is the saved file's, as it was)."""
+ import setup
+ self.assertEqual(setup.DSV41_CONTEXT, 8192)
+ with Home(), mock.patch.object(Catalog, "hardware", lambda self, fresh=False: dict(HW_4X32)):
+ self.assertEqual(catalog(HW_4X32).max_context("deepseek41", "UD-Q8_K_XL"), 8192)
+ screen = (ROOT / "apps" / "host" / "src" / "components" / "NativeModels.tsx").read_text(encoding="utf-8")
+ self.assertRegex(screen, r"if \(selectedSize\.multi_file\)\s+setContext\(8192\)")
+ self.assertRegex(screen, r"if \(installed\.context\)\s+setContext\(installed\.context\)")
+
def test_setup_stops_before_any_download_and_checks_the_pack_again(self):
source = (ROOT / "setup.py").read_text(encoding="utf-8")
early = source.index("ctx = a.context or DSV41_CONTEXT")