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): stop the live app before updating the venv + quiet voice-model download

Ruben Lütkedd84619d3eb8
diff --git a/install/install.sh b/install/install.sh
index c105852cbf..4774910a30 100755
--- a/install/install.sh
+++ b/install/install.sh
@@ -597,6 +597,20 @@ phase '3/6' 'Python environment'
VENV_PATH="$INSTALL_DIR/.venv"
VENV_PYTHON="$VENV_PATH/bin/python"
+# Update runs: stop any Jarvis still running out of THIS install before we
+# touch its environment. A live app (often revived by the login autostart)
+# keeps serving stale, half-updated features while pip rewrites the venv
+# under it — the "app is already open but nothing works yet" field report
+# (2026-07-14). The installer relaunches a fresh instance as its last step.
+if [ -x "$VENV_PYTHON" ]; then
+ if pkill -f "$VENV_PATH" 2>/dev/null; then
+ note 'stopped the running Jarvis app for the update'
+ fi
+ if [ "$(uname -s 2>/dev/null)" = "Darwin" ]; then
+ launchctl unload "$HOME/Library/LaunchAgents/com.personal-jarvis.autostart.plist" >/dev/null 2>&1 || true
+ fi
+fi
+
# Rebuild the venv when the selected interpreter's major.minor changed
# (BUG-059 follow-up): the 3.13-first preference is useless for an EXISTING
# install whose venv is pinned to 3.14 — a stale venv keeps the local-voice
diff --git a/install/installer.py b/install/installer.py
index ddb2ae9477..4c378fb605 100644
--- a/install/installer.py
+++ b/install/installer.py
@@ -272,7 +272,14 @@ def step_models(*, dry_run: bool) -> None:
# model can still leave "done" looking complete. So don't stop at rc — VERIFY
# what actually landed on disk and print a per-model truth. Read-only +
# best-effort: this never bricks the install (CLAUDE.md section 3).
- run(cmd, cwd=repo_root(), check=False)
+ # run_quiet: the raw download progress (hundreds of scrolling lines) was
+ # the one step still wrecking the calm gold transcript — hide it behind
+ # the spinner; verify_models prints the honest per-model outcome after.
+ run_quiet(
+ cmd,
+ label="downloading voice models (the long step - a few hundred MB)",
+ cwd=repo_root(),
+ )
verify_models()
diff --git a/tests/unit/install/test_install_sh_python_detection.py b/tests/unit/install/test_install_sh_python_detection.py
index 0a7b43f793..f740da078d 100644
--- a/tests/unit/install/test_install_sh_python_detection.py
+++ b/tests/unit/install/test_install_sh_python_detection.py
@@ -251,3 +251,17 @@ def test_bootstraps_full_support_python_when_host_only_has_314() -> None:
assert '[ -z "${JARVIS_PYTHON:-}" ]' in src
# Honest degrade when the bootstrap fails.
assert "the speech pack needs Python 3.11-3.13" in src
+
+
+def test_update_run_stops_the_live_app_before_touching_the_venv() -> None:
+ """Field report 2026-07-14: during an update, the previously installed
+ app (often revived by the login autostart) kept running with a stale,
+ half-rewritten venv underneath — 'the app is already open but nothing
+ works'. install.sh must stop instances of THIS install before phase 3."""
+ src = INSTALL_SH.read_text(encoding="utf-8")
+ assert 'pkill -f "$VENV_PATH"' in src
+ assert "stopped the running Jarvis app for the update" in src
+ # The stop must come BEFORE the venv rebuild block.
+ assert src.index("stopped the running Jarvis app") < src.index(
+ "rebuilding the Python environment"
+ )