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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(install): choose-don't-type welcome gate before anything runs
Ruben Lütke5d45f1a323c1
diff --git a/install/install.sh b/install/install.shindex 4774910a30..df16f2b529 100755--- a/install/install.sh+++ b/install/install.sh@@ -62,6 +62,46 @@ ${DIM} P E R S O N A L J A R V I S · talk to your computer${RST}${DIM} Checks prerequisites · installs the full profile · launches when done${RST}EOF+# -------------------------------------------------------------- welcome gate+# One clear question before anything touches the machine. Arrow keys (or+# y / n) choose, Enter confirms — nothing to type. `curl | bash` keeps stdin+# on the pipe, so the keys are read from /dev/tty; without a tty (CI,+# headless automation) the install proceeds — running the command was the+# explicit opt-in there. JARVIS_INSTALL_YES=1 skips the question entirely.+ask_welcome() {+ [ -n "${JARVIS_INSTALL_YES:-}" ] && return 0+ { [ -r /dev/tty ] && [ -w /dev/tty ]; } 2>/dev/null || return 0+ _sel=0 # 0 = yes, 1 = no+ while :; do+ if [ "$_sel" -eq 0 ]; then+ printf '\r %sWould you like to install Personal Jarvis?%s %s%s▸ Yes%s No ' \+ "$BOLD" "$RST" "$BOLD" "$GOLD" "$RST" > /dev/tty+ else+ printf '\r %sWould you like to install Personal Jarvis?%s Yes %s%s▸ No%s ' \+ "$BOLD" "$RST" "$BOLD" "$RED" "$RST" > /dev/tty+ fi+ IFS= read -rsn1 _key < /dev/tty || return 0+ case "$_key" in+ $'\x1b')+ IFS= read -rsn2 -t 1 _rest < /dev/tty || _rest=''+ case "$_rest" in+ '[C'|'[B') _sel=1 ;;+ '[D'|'[A') _sel=0 ;;+ esac+ ;;+ y|Y) _sel=0; break ;;+ n|N) _sel=1; break ;;+ '') break ;; # Enter confirms the highlighted choice+ esac+ done+ printf '\n' > /dev/tty+ if [ "$_sel" -eq 1 ]; then+ note 'No problem - nothing was installed. Run the same command any time.'+ exit 0+ fi+}+ask_welcome+# -------------------------------------------------------------- preflightphase '1/6' 'Prerequisites'diff --git a/tests/unit/install/test_install_sh_python_detection.py b/tests/unit/install/test_install_sh_python_detection.pyindex f740da078d..b16bf14836 100644--- a/tests/unit/install/test_install_sh_python_detection.py+++ b/tests/unit/install/test_install_sh_python_detection.py@@ -265,3 +265,18 @@ def test_update_run_stops_the_live_app_before_touching_the_venv() -> None:assert src.index("stopped the running Jarvis app") < src.index("rebuilding the Python environment")+++def test_welcome_gate_asks_before_touching_anything() -> None:+ """Maintainer request 2026-07-14: the very first thing the one-liner shows+ is a single choose-don't-type question. It must read keys from /dev/tty+ (stdin carries the piped script), skip cleanly without a tty (CI opt-in+ = running the command), honor JARVIS_INSTALL_YES=1, and exit 0 on No+ having touched nothing."""+ src = INSTALL_SH.read_text(encoding="utf-8")+ assert "Would you like to install Personal Jarvis?" in src+ assert "JARVIS_INSTALL_YES" in src+ assert "< /dev/tty" in src+ assert "nothing was installed" in src+ # The gate runs BEFORE phase 1 (prerequisites) — nothing precedes consent.+ assert src.index("ask_welcome") < src.index("phase '1/6'")diff --git a/tests/unit/install/test_installer_flow.py b/tests/unit/install/test_installer_flow.pyindex 2cf3d1fd25..c11ea1505a 100644--- a/tests/unit/install/test_installer_flow.py+++ b/tests/unit/install/test_installer_flow.py@@ -44,13 +44,18 @@ def test_installer_prompts_only_inside_missing_prerequisite_flow() -> None:sh_begin = sh.index("# --- prerequisite-bootstrap begin")sh_end = sh.index("# --- prerequisite-bootstrap end")- sh_outside = sh[:sh_begin] + sh[sh_end:]+ # Design amendment 2026-07-14: ONE more allowed prompt — the welcome gate+ # ("Would you like to install?") BEFORE phase 1. Nothing else may ask.+ wg_begin = sh.index("# -------------------------------------------------------------- welcome gate")+ wg_end = sh.index("# -------------------------------------------------------------- preflight")+ sh_outside = sh[:wg_begin] + sh[wg_end:sh_begin] + sh[sh_end:]assert "read -r" not in sh_outsideassert "read -p" not in shassert sh[sh_begin:sh_end].count("read -r") == 2assert all(- "</dev/tty" in line- for line in sh[sh_begin:sh_end].splitlines()+ "< /dev/tty" in line.replace("</dev/tty", "< /dev/tty")+ for block in (sh[sh_begin:sh_end], sh[wg_begin:wg_end])+ for line in block.splitlines()if "read -r" in line)