Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(install): keep a dry-run from compiling the UI (#1053)

Ruben Lütkecb19766ee2d2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57e166c2fb..ac17e983ee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,9 @@ versioning per [SemVer](https://semver.org/).
### Changed
+- The small-machine vision download is `qwen3-vl:2b-instruct` (1.9 GB, refreshed
+ in the library). The previous tag `qwen3-vl:2b` is still published but Ollama
+ shows it as a year old, so a new install no longer offers it.
- The `personal-jarvis` package on PyPI is now a thin pointer to `dodaios`
instead of a second copy of the app: it installs `dodaios` at the same
version, maps every extra (`personal-jarvis[full]` installs `dodaios[full]`)
diff --git a/dodaios/brain/ollama_pull.py b/dodaios/brain/ollama_pull.py
index a1bc9a2b9a..4a6a138b12 100644
--- a/dodaios/brain/ollama_pull.py
+++ b/dodaios/brain/ollama_pull.py
@@ -116,7 +116,7 @@ class RecommendedModel:
#: ``tests/integration/test_ollama_catalog_is_current.py``: a review older
#: than twelve months fails the suite, because the project rule forbids shipping a
#: year-old local default. Bump it in the same commit that refreshes the list.
-CURATED_REVIEWED_ON = datetime.date(2026, 8, 24)
+CURATED_REVIEWED_ON = datetime.date(2026, 10, 29)
#: How old the review above may get before the guard fails.
CURATED_MAX_AGE_DAYS = 365
@@ -182,8 +182,8 @@ RECOMMENDED_MODELS: tuple[RecommendedModel, ...] = (
),
# ── vision fallback (Screen Context / Computer-Use below 3 GB) ──────────
RecommendedModel(
- id="qwen3-vl:2b",
- label="Qwen 3 VL 2B",
+ id="qwen3-vl:2b-instruct",
+ label="Qwen 3 VL 2B Instruct",
size_gb=1.9,
purpose="Sees your screen on a machine too small for a multimodal chat model.",
role="vision",
@@ -551,7 +551,7 @@ async def recommendations() -> dict[str, Any]:
"accelerator_gb": round(accel, 1),
"accelerator_source": accel_source,
"roles": list(ROLE_ORDER),
- # ISO date so the panel can say "Shortlist reviewed 2026-08-24" — the
+ # ISO date so the panel can say "Shortlist reviewed 2026-10-29" — the
# honest answer to "how current is this list?", next to the live
# catalogue's own "fetched N minutes ago".
"curated_reviewed_on": CURATED_REVIEWED_ON.isoformat(),
diff --git a/install/installer.py b/install/installer.py
index 19464b869d..63271d225c 100644
--- a/install/installer.py
+++ b/install/installer.py
@@ -1154,7 +1154,15 @@ def main(argv: list[str] | None = None) -> int:
step_macos_bundle_name(dry_run=args.dry_run)
if not step_desktop_integration(enabled=with_desktop, dry_run=args.dry_run):
sys.exit(4)
- if not step_ui_bundle_check() and not args.dry_run:
+ # --dry-run must not compile. step_ui_bundle_check builds a missing bundle
+ # with npm, and main does not track dist. On the macOS suite that compile
+ # ran inside a dry-run test until the file budget killed it.
+ if args.dry_run:
+ console.print(
+ "[muted]│ (dry-run) check the UI build, and create it with npm "
+ "when the checkout has none[/]"
+ )
+ elif not step_ui_bundle_check():
sys.exit(5)
# Summary FIRST, launch LAST: when the app window appears, the terminal
diff --git a/tests/integration/test_ollama_catalog_is_current.py b/tests/integration/test_ollama_catalog_is_current.py
index b9db28b00e..d30fb73aa8 100644
--- a/tests/integration/test_ollama_catalog_is_current.py
+++ b/tests/integration/test_ollama_catalog_is_current.py
@@ -40,9 +40,10 @@ pytestmark = pytest.mark.integration
_REGISTRY = "https://registry.ollama.ai/v2/library"
_ACCEPT = {"Accept": "application/vnd.docker.distribution.manifest.v2+json"}
-#: Every tag the 2026-08-24 shortlist refresh names, listed here so a retired
-#: one fails by NAME even if someone trims it from RECOMMENDED_MODELS without
-#: reading this file. Verified against the registry manifests on that date.
+#: Every tag the shortlist names, listed here so a retired one fails by NAME
+#: even if someone trims it from RECOMMENDED_MODELS without reading this file.
+#: ``qwen3-vl:2b`` aged out of the library's "1 year ago" line on 2026-10-29;
+#: ``qwen3-vl:2b-instruct`` is the same 1.9 GB vision model, refreshed since.
_SHORTLIST_2026_08_24 = (
"granite4.1:3b",
"qwen3.5:4b",
@@ -52,7 +53,7 @@ _SHORTLIST_2026_08_24 = (
"gemma4:26b-a4b-it-qat",
"qwen3.8:27b",
"nemotron-3.5-lightning",
- "qwen3-vl:2b",
+ "qwen3-vl:2b-instruct",
"ornith:9b",
"qwen3.6:27b",
"muse-glimmer:30b",
diff --git a/tests/unit/brain/test_ollama_pull.py b/tests/unit/brain/test_ollama_pull.py
index 48353fd864..36e06c2d10 100644
--- a/tests/unit/brain/test_ollama_pull.py
+++ b/tests/unit/brain/test_ollama_pull.py
@@ -189,11 +189,11 @@ async def test_recommendations_mark_what_is_already_there(fake_tags) -> None:
result = await pull.recommendations()
by_id = {m["id"]: m for m in result["models"]}
assert by_id["qwen3.5"]["installed"] is True
- assert by_id["qwen3-vl:2b"]["installed"] is False
+ assert by_id["qwen3-vl:2b-instruct"]["installed"] is False
# The vision fallback must be findable AS the vision entry — it is the one
# that makes Screen Context work on a machine too small for a multimodal
# chat pick, and the chat picks that see the screen say so themselves.
- assert by_id["qwen3-vl:2b"]["vision"] is True
+ assert by_id["qwen3-vl:2b-instruct"]["vision"] is True
assert by_id["qwen3.5"]["vision"] is True
assert result["server_reachable"] is True
assert result["curated_reviewed_on"] == pull.CURATED_REVIEWED_ON.isoformat()
@@ -438,7 +438,7 @@ async def test_the_vision_pick_is_the_multimodal_chat_model_where_it_fits(
_machine(monkeypatch, ram=4.0, accel=0.0)
result = await pull.recommendations()
vision_pick = next(m for m in result["models"] if "vision" in m["recommended_for"])
- assert vision_pick["id"] == "qwen3-vl:2b"
+ assert vision_pick["id"] == "qwen3-vl:2b-instruct"
def test_the_shortlist_review_date_is_not_a_year_old() -> None:
@@ -478,7 +478,7 @@ async def test_real_registry_sizes_replace_the_estimates(fake_tags, monkeypatch)
assert by_id["qwen3.5"]["size_gb"] == 9.0
# A model the registry did not answer for keeps its curated estimate rather
# than vanishing or reporting zero.
- assert by_id["qwen3-vl:2b"]["size_gb"] == 1.9
+ assert by_id["qwen3-vl:2b-instruct"]["size_gb"] == 1.9
async def test_an_offline_registry_leaves_a_usable_panel(fake_tags, monkeypatch) -> None:
diff --git a/tests/unit/install/test_installer_flow.py b/tests/unit/install/test_installer_flow.py
index 3e85ce2470..3e210f7bff 100644
--- a/tests/unit/install/test_installer_flow.py
+++ b/tests/unit/install/test_installer_flow.py
@@ -315,6 +315,52 @@ def test_launch_fallback_hint_is_shown_on_every_desktop_os(monkeypatch, capsys)
assert "dodaios.ui.web.launcher" in linux_out
+def test_dry_run_does_not_compile_a_missing_ui(monkeypatch, tmp_path, capsys) -> None:
+ """A dry-run on a main checkout must not shell out to npm.
+
+ main does not track dodaios/ui/web/dist. The macOS suite's whole-file
+ budget killed this module because a dry-run still called
+ step_ui_bundle_check, and that builds the missing bundle with npm ci and
+ npm run build whenever npm is on PATH.
+ """
+ frontend = tmp_path / "dodaios" / "ui" / "web" / "frontend"
+ frontend.mkdir(parents=True)
+ (frontend / "package-lock.json").write_text("{}\n", encoding="utf-8")
+ monkeypatch.setattr(installer, "repo_root", lambda: tmp_path)
+ monkeypatch.setattr(installer, "is_update_run", lambda: False)
+ monkeypatch.setattr(installer, "write_managed_marker", lambda **kwargs: None)
+ monkeypatch.setattr(installer.sys, "platform", "linux")
+ monkeypatch.setenv("DISPLAY", ":99")
+ for step in (
+ "step_preflight",
+ "step_pip_install",
+ "step_models",
+ "step_cli_links",
+ "step_worker_cli",
+ "step_macos_bundle_name",
+ "step_summary",
+ ):
+ monkeypatch.setattr(installer, step, lambda **kwargs: None)
+ monkeypatch.setattr(installer, "step_desktop_integration", lambda **kwargs: True)
+ calls: list[list[str]] = []
+
+ def refuse(cmd, **kwargs):
+ calls.append(list(cmd))
+ raise AssertionError(cmd)
+
+ monkeypatch.setattr(installer, "run_captured", refuse)
+ monkeypatch.setattr(installer, "run_noted", refuse)
+ monkeypatch.setattr(installer.shutil, "which", lambda name: "/usr/local/bin/npm")
+
+ rc = installer.main(["--dry-run", "--no-launch"])
+
+ assert rc == 0
+ assert calls == []
+ out = capsys.readouterr().out
+ assert "dry-run" in out
+ assert "npm" in out
+
+
def test_linux_gui_gets_full_profile_and_app_menu_registration(
monkeypatch, capsys, fresh_install
) -> None: