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: no choices and no terminal starts nothing
Niko1221a2bab5c8c2e0
diff --git a/strata_cli/launch/cmd.py b/strata_cli/launch/cmd.pyindex 59d432cd7..9a88d96b6 100644--- a/strata_cli/launch/cmd.py+++ b/strata_cli/launch/cmd.py@@ -428,7 +428,12 @@ def run_launch(a: argparse.Namespace) -> int:s, notices = settings_from_args(a, catalog)have_choices = bool(a.preset or a.model or a.model_path or a.context or a.vision or a.parallel or a.access or a.tune)interactive = sys.stdin.isatty() and sys.stdout.isatty() and not a.no_tui and not machine and not a.plan+ if not have_choices and not interactive and not a.plan:+ return fail("`strata launch` with no choices opens screens, and this is not a terminal. Name what to start: --preset NAME, or --model NAME "+ "(strata launch --help has examples; --plan shows what would happen without changing anything).", 2)if interactive and not have_choices:+ if catalog is None:+ return fail("This Terminal does not carry the model list, so the screens cannot open. Install it again with the one-line installer.", 5)from strata_cli.launch import appreturn app.run_tui(None, catalog=catalog, feed=a.feed)if catalog is None:diff --git a/tests/terminal/test_launch.py b/tests/terminal/test_launch.pyindex 816a05c1f..05d036ebf 100644--- a/tests/terminal/test_launch.py+++ b/tests/terminal/test_launch.py@@ -461,6 +461,13 @@ class FlagsCommand(unittest.TestCase):self.assertEqual(s["model_path"], str(Path("/data/models/IQ3_XXS")))self.assertIsNone(s["model"])+ def test_no_choices_and_no_terminal_does_not_start_anything(self):+ with mock.patch.object(Runner, "run", side_effect=AssertionError("must not run")):+ code, out, err = run_cli(["launch"])+ self.assertEqual(code, 2)+ self.assertIn("not a terminal", err)+ self.assertIn("--preset NAME", err)+def test_unknown_model_names_the_closest_one(self):code, out, err = run_cli(["launch", "--plan", "--model", "iq3xxs"])self.assertEqual(code, 2)