From 05ccfbdeb461cf0b27ab523ac847910c6bb2c95f Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Tue, 9 Jun 2026 22:34:41 +0200 Subject: [PATCH] fix: RAM column shows "server" for remote engines (v2.03.05) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remote engines run models server-side so local RSS never changes. Show "server" instead of "—" to make the reason clear. Local engines show measured MB; local already-loaded shows "—". Co-Authored-By: Claude Sonnet 4.6 --- linux/blitztext/__init__.py | 2 +- linux/blitztext/gtksettings.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/linux/blitztext/__init__.py b/linux/blitztext/__init__.py index 2b1f647..93cad87 100644 --- a/linux/blitztext/__init__.py +++ b/linux/blitztext/__init__.py @@ -6,4 +6,4 @@ counterpart to the macOS Blitztext menu bar app: it runs natively on the host (not in a container) so it can type into any application via xdotool. """ -__version__ = "2.03.04" +__version__ = "2.03.05" diff --git a/linux/blitztext/gtksettings.py b/linux/blitztext/gtksettings.py index d133ef2..79378d2 100644 --- a/linux/blitztext/gtksettings.py +++ b/linux/blitztext/gtksettings.py @@ -2228,7 +2228,12 @@ notebook.bt-nb tab:checked label { # Strip scheme from URL for display brevity (http://192.168.1.1:8080 → 192.168.1.1:8080) url_display = row.url.removeprefix("https://").removeprefix("http://").rstrip("/") lang_display = stt.fmt_languages(row.languages) - ram_display = f"{row.ram_mb:.0f}" if row.ram_mb >= 1.0 else "—" + if row.ram_mb >= 1.0: + ram_display = f"{row.ram_mb:.0f}" + elif row.url: + ram_display = "server" # model runs remotely — RAM not measurable here + else: + ram_display = "—" # local model already loaded, no delta self.bench_store.append([row.engine, url_display, row.model, row.device, row.best_for, lang_display, f"{row.seconds:.2f}", acc, ram_display, out_friendly, tooltip]) # Persist result so Engines tab can show it