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: at 80 columns the model list keeps its verdict column (fits, tight, too big and the recommendation) instead of cutting it off; test

Niko1221d9d033be8622
diff --git a/strata_cli/launch/screens.py b/strata_cli/launch/screens.py
index e15177ee7..a17bbd544 100644
--- a/strata_cli/launch/screens.py
+++ b/strata_cli/launch/screens.py
@@ -387,7 +387,7 @@ class ModelScreen(Base):
w = self.width()
if w >= 100:
return [("Model", 42), ("Download", 10), ("Needs (RAM + VRAM)", 20), ("On this computer", 0)]
- return [("Model", 41), ("Download", 9), ("Needs (RAM+VRAM)", 17), ("On this computer", 0)]
+ return [("Model", 41), ("Size", 8), ("Needs", 7), ("Fits?", 0)] # 80 columns: the verdict column keeps room (the long words are below the list)
def build_menu(self, initial: bool = False) -> None:
s = self.ctx.settings
@@ -402,7 +402,11 @@ class ModelScreen(Base):
tag = (" (recommended)" if r.recommended else "") + (" (installed)" if r.installed else "") + (" [experimental]" if r.experimental else "")
need = f"{r.memory_gb:.0f} GB" if r.memory_gb else "-"
ssd = f" · SSD {r.spill_gb:.0f} GB" if r.spill_gb >= 1 else ""
- items.append(Item([r.title, f"{r.download_gb:.0f} GB", need, Cell((r.words.split(",")[0].split(":")[0] if ssd and "SSD" in r.words else r.words) + ssd + tag, col)], key=(r.family, r.model)))
+ verdict = (r.words.split(",")[0].split(":")[0] if ssd and "SSD" in r.words else r.words) + ssd + tag
+ if self.width() < 100: # a short verdict that fits the column; the full sentence is shown under the list
+ extra = " (recommended)" if r.recommended else " (installed)" if r.installed else " [experimental]" if r.experimental else ""
+ verdict = {"fits": "fits", "tight": "tight", "no": "too big"}[r.verdict] + extra
+ items.append(Item([r.title, f"{r.download_gb:.0f} GB", need, Cell(verdict, col)], key=(r.family, r.model)))
if (s.family, s.model) == (r.family, r.model):
sel = i
m = self.query_one(Menu)
diff --git a/tests/terminal/test_launch_tui.py b/tests/terminal/test_launch_tui.py
index 25118b95b..dff557980 100644
--- a/tests/terminal/test_launch_tui.py
+++ b/tests/terminal/test_launch_tui.py
@@ -236,6 +236,24 @@ class ModelStep(Base):
self.assertIn("The n-gram table stays on your SSD", t)
self.run_app(case)
+ def test_the_verdict_column_is_not_cut_off_at_80_columns(self): # 0.2.5 list
+ ctx = make_ctx()
+ app = LaunchApp(ctx)
+
+ async def go():
+ async with app.run_test(size=(80, 34)) as pilot:
+ await pilot.pause(0.2)
+ await press(pilot, "enter")
+ t = text_of(app)
+ self.assertIn("Fits?", t)
+ rec = next(l for l in t.splitlines() if "Qwen3.8-Flash-Next IQ3_S " in l)
+ self.assertIn("fits (recommended)", rec)
+ for model in ("Q2_0", "NVFP4 ", "UD-Q5_K_XL"):
+ row = next(l for l in t.splitlines() if model in l and "GB" in l)
+ self.assertTrue(any(w in row for w in ("fits", "tight", "too big")), row)
+ self.assertTrue(all(len(l) <= 80 for l in t.splitlines()))
+ asyncio.run(go())
+
def test_choosing_a_model_and_going_on(self):
async def case(app, pilot, ctx):
await press(pilot, "enter", "up", "up", "up", "enter")