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

launch: the second sentence of 'The model could not be installed.' starts with a capital; test

Niko12210003604859d2
diff --git a/strata_cli/__init__.py b/strata_cli/__init__.py
index c395efd3a..5736eab45 100644
--- a/strata_cli/__init__.py
+++ b/strata_cli/__init__.py
@@ -7,7 +7,7 @@ SCHEMA_VERSION = 1
#: The version people are told: the Strata app's own (apps/desktop/src-tauri/Cargo.toml `version`; tests/terminal/test_tuiqa_version.py keeps the
#: two equal, except for a Terminal-only release such as 0.2.3.1 or 0.2.4, whose app stays 0.2.3). `version()` below is the files' build number, which the engine-compatibility checks compare, so it stays numeric.
-PRODUCT_VERSION = "0.2.4.1"
+PRODUCT_VERSION = "0.2.4.2"
def version() -> str:
diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.py
index 2e3a13916..5039d3d43 100644
--- a/strata_cli/launch/runner.py
+++ b/strata_cli/launch/runner.py
@@ -116,7 +116,7 @@ def setup_failure(lines: list[str], err: str, hint: str, details: str | None, ow
"Pick a folder you own for the model files (the Folder step, or --data-dir D:\\Strata-models) and start again. "
"Nothing was downloaded." + where, 6)
return LaunchError(f"The model could not be installed. Setup stopped with an error ({crashed}).", "Run it again." + where, 6)
- return LaunchError("The model could not be installed." + (f" {err.rstrip('.')}." if err else ""),
+ return LaunchError("The model could not be installed." + (f" {capital(err.rstrip('.'))}." if err else ""),
(hint or ("Run it again: finished steps are skipped." if own_files else
"Run it again: finished steps are skipped and a download continues where it stopped."))
+ (f" Details: {details}" if details else ""), 6)
diff --git a/tests/terminal/test_launch.py b/tests/terminal/test_launch.py
index bff3b199f..8093ef4f0 100644
--- a/tests/terminal/test_launch.py
+++ b/tests/terminal/test_launch.py
@@ -970,6 +970,11 @@ class FlagsCommand(unittest.TestCase):
self.assertEqual(code, 0) # the preset's own key
self.assertTrue(out.strip().startswith("sk-strata-"))
+ def test_a_setup_line_joined_after_the_model_could_not_be_installed_starts_with_a_capital(self):
+ from strata_cli.launch.runner import setup_failure
+ e = setup_failure([], "the model does not answer sensibly after the preparation: no answer", "", None, False)
+ self.assertTrue(e.text.startswith("The model could not be installed. The model does not answer sensibly"), e.text)
+
def test_a_reason_joined_after_a_sentence_starts_with_a_capital(self):
from strata_cli.launch.runner import capital
self.assertEqual(capital("the update feed could not be read: no route"), "The update feed could not be read: no route")